SYS.Stats.Resource
class SYS.Stats.Resource extends SYS.WSMon.wsResource
This class represents detailed system metrics captured for 'seizes' of system resources. Each instance of the class represents a different resource which controls access to a different part of the system code. Examples are 'Pid' for the internal process table, 'Lock' for locking structures, 'Stat' for statistics, etc.The current values for each class instance may be fetched using the Query 'Sample', and then the current value of each property can be accessed.
For example:
s sz="Name,Seize,Nseize,Aseize,Bseize,BusySet" ; list of properties s rset=##class(%ResultSet).%New("SYS.Stats.Resource:Sample") d rset.Execute() s len=$l(sz,",") ; list all resources and related seize counts while rset.Next() { f i=1:1:len w rset.Data($p(sz,",",i)) w:i<len "," w ! }
Metrics for InterSystems IRIS instance resource contention
Property Inventory
Method Inventory
- DisplayClose()
- DisplayExecute()
- DisplayFetch()
- DisplaySortClose()
- DisplaySortExecute()
- DisplaySortFetch()
- Sample()
- SampleClose()
- SampleExecute()
- SampleFetch()
Properties
property Aseize as %Integer;
Number of Aseizes
Property methods: AseizeDisplayToLogical(), AseizeGet(), AseizeIsValid(), AseizeLogicalToDisplay(), AseizeNormalize(), AseizeSet(), AseizeXSDToLogical()
property Bseize as %Integer;
Number of Bseizes
Property methods: BseizeDisplayToLogical(), BseizeGet(), BseizeIsValid(), BseizeLogicalToDisplay(), BseizeNormalize(), BseizeSet(), BseizeXSDToLogical()
property BusySets as %Integer;
Number of BusySet
Property methods: BusySetsDisplayToLogical(), BusySetsGet(), BusySetsIsValid(), BusySetsLogicalToDisplay(), BusySetsNormalize(), BusySetsSet(), BusySetsXSDToLogical()
property Name as %String;
The name of the resource.
Property methods: NameDisplayToLogical(), NameGet(), NameIsValid(), NameLogicalToDisplay(), NameLogicalToOdbc(), NameNormalize(), NameSet()
property Nseize as %Integer;
Number of Nseizes
Property methods: NseizeDisplayToLogical(), NseizeGet(), NseizeIsValid(), NseizeLogicalToDisplay(), NseizeNormalize(), NseizeSet(), NseizeXSDToLogical()
property Seize as %Integer;
Number of Seizes
Property methods: SeizeDisplayToLogical(), SeizeGet(), SeizeIsValid(), SeizeLogicalToDisplay(), SeizeNormalize(), SeizeSet(), SeizeXSDToLogical()
Methods
classmethod DisplayFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status
classmethod DisplaySortFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status
classmethod Sample(Index As %Integer) as SYS.Stats.Resource
Instantiate the class for a specific resource and fill in current values for all properties.
'Index' is an integer from 1 to 'n' used to reference a specific resource. An index greater
than 'n' returns a blank resource Name. To find a specific resource Name, you would loop through
the Resource list starting at 1 until you find the Name (or reach a blank Name).
Allows for XML output of a single Resource instance.
Allows for XML output of a single Resource instance.
Queries
query Display()
Selects Name As %String, Seize As %String, Nseize As %String, Aseize As %String, Bseize As %String, BusySet As %String
Sample counters for all Resource / SeizeTypes. Same as "Sample" query except numbers
are formatted with separator characters.
query DisplaySort()
Selects Name As %String, Seize As %String, SeizeSort As %Integer, Nseize As %String, NseizeSort As %Integer, Aseize As %String, AseizeSort As %Integer, Bseize As %String, BseizeSort As %Integer, BusySet As %String, BusySetSort As %Integer
Sample counters for all Resource / SeizeTypes. Same as "Display" query except we've added
"sort" columns, whih are the same number without formatting. The UI uses these extra columns
to sort the display, as integers with "," separators get sorted as strings.
query Sample()
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()
- XMLDTD()
- XMLExport()
- XMLExportToStream()
- XMLExportToString()
- XMLNew()
- XMLSchema()
- XMLSchemaNamespace()
- XMLSchemaType()