Statistic Identifiers
A statistic can be information about a class or about a resource (a class
, res
pair). The most common statistic type is a counter.
The following resource statistic SSID holds the cumulative interrupt count for CPU instance 0:
//:class.cpu//:res.id/0//:stat.interrupt-count
To specify multiple statistics with one SSID, use the *
wildcard as shown in the following example, or use the s
(slice) keyword as shown in Displaying Resource and Statistic Slices.
The following command lists all statistics available for each CPU resource:
$ sstore list //:class.cpu//:res.id/0//:stat.*
IDENTIFIER
//:class.cpu//:res.id/0//:stat.fpu-usage
//:class.cpu//:res.id/0//:stat.integer-pipe-usage
//:class.cpu//:res.id/0//:stat.interrupt-count
//:class.cpu//:res.id/0//:stat.interrupt-time
//:class.cpu//:res.id/0//:stat.usage
//:class.cpu//:res.id/0//:stat.xcalls
Only statistics can be partitioned. See Displaying Values of Statistic Partitions for examples.
Only statistic values can be used in mathematical operations. Mathematical operations are expressed as a component of the SSID. See Performing Operations on Statistic Values for examples.