System.Diagnostics.PerformanceCounter
Defines a structure that holds the raw data for a performance counter.
Initializes a new instance of the structure and sets the property to 0 (zero).
The numeric value associated with the performance counter sample.
An optional, base raw value for the counter, to use only if the sample is based on multiple counters.
The frequency with which the counter is read.
The frequency with which the system reads from the counter.
The raw time stamp.
The raw, high-fidelity time stamp.
A object that indicates the type of the counter for which this sample is a snapshot.
Initializes a new instance of the structure and sets the property to the value that is passed in.
The numeric value associated with the performance counter sample.
An optional, base raw value for the counter, to use only if the sample is based on multiple counters.
The frequency with which the counter is read.
The frequency with which the system reads from the counter.
The raw time stamp.
The raw, high-fidelity time stamp.
A object that indicates the type of the counter for which this sample is a snapshot.
The time at which the sample was taken.
Gets an optional, base raw value for the counter.
The base raw value, which is used only if the sample is based on multiple counters.
Calculates the performance data of the counter, using a single sample point. This method is generally used for uncalculated performance counter types.
The structure to use as a base point for calculating performance data.
The calculated performance value.
Calculates the performance data of the counter, using two sample points. This method is generally used for calculated performance counter types, such as averages.
The structure to use as a base point for calculating performance data.
The structure to use as an ending point for calculating performance data.
The calculated performance value.
Gets the raw counter frequency.
The frequency with which the counter is read.
Gets the counter's time stamp.
The time at which the sample was taken.
Gets the performance counter type.
A object that indicates the type of the counter for which this sample is a snapshot.
Defines an empty, uninitialized performance counter sample of type NumberOfItems32.
Indicates whether the specified structure is equal to the current structure.
true if other is equal to the current instance; otherwise, false.
Indicates whether the specified structure is a structure and is identical to the current structure.
true if obj is a structure and is identical to the current instance; otherwise, false.
Gets a hash code for the current counter sample.
A hash code for the current counter sample.
Returns a value that indicates whether two structures are equal.
true if a and b are equal; otherwise, false.
Returns a value that indicates whether two structures are not equal.
true if a and b are not equal; otherwise, false
Gets the raw value of the counter.
The numeric value that is associated with the performance counter sample.
Gets the raw system frequency.
The frequency with which the system reads from the counter.
Gets the raw time stamp.
The system time stamp.
Gets the raw, high-fidelity time stamp.
The system time stamp, represented within 0.1 millisecond.
Represents a Windows NT performance counter component.
Initializes a new, read-only instance of the class, without associating the instance with any system or custom performance counter.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Initializes a new, read-only instance of the class and associates it with the specified system or custom performance counter on the local computer. This constructor requires that the category have a single instance.
The name of the performance counter category (performance object) with which this performance counter is associated.
The name of the performance counter.
categoryName is an empty string ("").
-or-
counterName is an empty string ("").
-or-
The category specified does not exist.
-or-
The category specified is marked as multi-instance and requires the performance counter to be created with an instance name.
-or-
categoryName and counterName have been localized into different languages.
categoryName or counterName is null.
An error occurred when accessing a system API.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Code that is executing without administrative privileges attempted to read a performance counter.
Initializes a new, read-only or read/write instance of the class and associates it with the specified system or custom performance counter on the local computer. This constructor requires that the category contain a single instance.
The name of the performance counter category (performance object) with which this performance counter is associated.
The name of the performance counter.
true to access the counter in read-only mode (although the counter itself could be read/write); false to access the counter in read/write mode.
The categoryName is an empty string ("").
-or-
The counterName is an empty string ("").
-or-
The category specified does not exist. (if readOnly is true).
-or-
The category specified is not a .NET Framework custom category (if readOnly is false).
-or-
The category specified is marked as multi-instance and requires the performance counter to be created with an instance name.
-or-
categoryName and counterName have been localized into different languages.
categoryName or counterName is null.
An error occurred when accessing a system API.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Code that is executing without administrative privileges attempted to read a performance counter.
Initializes a new, read-only instance of the class and associates it with the specified system or custom performance counter and category instance on the local computer.
The name of the performance counter category (performance object) with which this performance counter is associated.
The name of the performance counter.
The name of the performance counter category instance, or an empty string (""), if the category contains a single instance.
categoryName is an empty string ("").
-or-
counterName is an empty string ("").
-or-
The category specified is not valid.
-or-
The category specified is marked as multi-instance and requires the performance counter to be created with an instance name.
-or-
instanceName is longer than 127 characters.
-or-
categoryName and counterName have been localized into different languages.
categoryName or counterName is null.
An error occurred when accessing a system API.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Code that is executing without administrative privileges attempted to read a performance counter.
Initializes a new, read-only or read/write instance of the class and associates it with the specified system or custom performance counter and category instance on the local computer.
The name of the performance counter category (performance object) with which this performance counter is associated.
The name of the performance counter.
The name of the performance counter category instance, or an empty string (""), if the category contains a single instance.
true to access a counter in read-only mode; false to access a counter in read/write mode.
categoryName is an empty string ("").
-or-
counterName is an empty string ("").
-or-
The read/write permission setting requested is invalid for this counter.
-or-
The category specified does not exist (if readOnly is true).
-or-
The category specified is not a .NET Framework custom category (if readOnly is false).
-or-
The category specified is marked as multi-instance and requires the performance counter to be created with an instance name.
-or-
instanceName is longer than 127 characters.
-or-
categoryName and counterName have been localized into different languages.
categoryName or counterName is null.
An error occurred when accessing a system API.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Code that is executing without administrative privileges attempted to read a performance counter.
Initializes a new, read-only instance of the class and associates it with the specified system or custom performance counter and category instance, on the specified computer.
The name of the performance counter category (performance object) with which this performance counter is associated.
The name of the performance counter.
The name of the performance counter category instance, or an empty string (""), if the category contains a single instance.
The computer on which the performance counter and its associated category exist.
categoryName is an empty string ("").
-or-
counterName is an empty string ("").
-or-
The read/write permission setting requested is invalid for this counter.
-or-
The counter does not exist on the specified computer.
-or-
The category specified is marked as multi-instance and requires the performance counter to be created with an instance name.
-or-
instanceName is longer than 127 characters.
-or-
categoryName and counterName have been localized into different languages.
The machineName parameter is not valid.
categoryName or counterName is null.
An error occurred when accessing a system API.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Code that is executing without administrative privileges attempted to read a performance counter.
Begins the initialization of a instance used on a form or by another component. The initialization occurs at runtime.
Gets or sets the name of the performance counter category for this performance counter.
The name of the performance counter category (performance object) with which this performance counter is associated.
The is null.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Closes the performance counter and frees all the resources allocated by this performance counter instance.
Frees the performance counter library shared state allocated by the counters.
Gets the description for this performance counter.
A description of the item or quantity that this performance counter measures.
The instance is not associated with a performance counter.
-or-
The property is set to when using global shared memory.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Code that is executing without administrative privileges attempted to read a performance counter.
Gets or sets the name of the performance counter that is associated with this instance.
The name of the counter, which generally describes the quantity being counted. This name is displayed in the list of counters of the Performance Counter Manager MMC snap in's Add Counters dialog box.
The is null.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Gets the counter type of the associated performance counter.
A that describes both how the counter interacts with a monitoring application and the nature of the values it contains (for example, calculated or uncalculated).
The instance is not correctly associated with a performance counter.
-or-
The property is set to when using global shared memory.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Code that is executing without administrative privileges attempted to read a performance counter.
Decrements the associated performance counter by one through an efficient atomic operation.
The decremented counter value.
The counter is read-only, so the application cannot decrement it.
-or-
The instance is not correctly associated with a performance counter.
-or-
The property is set to when using global shared memory.
An error occurred when accessing a system API.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Specifies the size, in bytes, of the global memory shared by performance counters. The default size is 524,288 bytes.
Ends the initialization of a instance that is used on a form or by another component. The initialization occurs at runtime.
Increments the associated performance counter by one through an efficient atomic operation.
The incremented counter value.
The counter is read-only, so the application cannot increment it.
-or-
The instance is not correctly associated with a performance counter.
-or-
The property is set to when using global shared memory.
An error occurred when accessing a system API.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Increments or decrements the value of the associated performance counter by a specified amount through an efficient atomic operation.
The value to increment by. (A negative value decrements the counter.)
The new counter value.
The counter is read-only, so the application cannot increment it.
-or-
The instance is not correctly associated with a performance counter.
-or-
The property is set to when using global shared memory.
An error occurred when accessing a system API.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Gets or sets the lifetime of a process.
One of the values. The default is .
The value set is not a member of the enumeration.
is set after the has been initialized.
Gets or sets an instance name for this performance counter.
The name of the performance counter category instance, or an empty string (""), if the counter is a single-instance counter.
Gets or sets the computer name for this performance counter
The server on which the performance counter and its associated category reside.
The format is invalid.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Obtains a counter sample, and returns the raw, or uncalculated, value for it.
A that represents the next raw value that the system obtains for this counter.
The instance is not correctly associated with a performance counter.
-or-
The property is set to when using global shared memory.
An error occurred when accessing a system API.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Code that is executing without administrative privileges attempted to read a performance counter.
Obtains a counter sample and returns the calculated value for it.
The next calculated value that the system obtains for this counter.
The instance is not correctly associated with a performance counter.
An error occurred when accessing a system API.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Code that is executing without administrative privileges attempted to read a performance counter.
Gets or sets the raw, or uncalculated, value of this counter.
The raw value of the counter.
You are trying to set the counter's raw value, but the counter is read-only.
-or-
The instance is not correctly associated with a performance counter.
-or-
The property is set to when using global shared memory.
An error occurred when accessing a system API.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Code that is executing without administrative privileges attempted to read a performance counter.
Gets or sets a value indicating whether this instance is in read-only mode.
true, if the instance is in read-only mode (even if the counter itself is a custom .NET Framework counter); false if it is in read/write mode. The default is the value set by the constructor.
Deletes the category instance specified by the object property.
This counter is read-only, so any instance that is associated with the category cannot be removed.
-or-
The instance is not correctly associated with a performance counter.
-or-
The property is set to when using global shared memory.
An error occurred when accessing a system API.
The platform is Windows 98 or Windows Millennium Edition (Me), which does not support performance counters.
Specifies the lifetime of a performance counter instance.
Remove the performance counter instance when no counters are using the process category.
Remove the performance counter instance when the process is closed.
Specifies the formula used to calculate the method for a instance.
A base counter that is used in the calculation of time or count averages, such as AverageTimer32 and AverageCount64. Stores the denominator for calculating a counter to present "time per operation" or "count per operation".
An average counter that shows how many items are processed, on average, during an operation. Counters of this type display a ratio of the items processed to the number of operations completed. The ratio is calculated by comparing the number of items processed during the last interval to the number of operations completed during the last interval.
An average counter that measures the time it takes, on average, to complete a process or operation. Counters of this type display a ratio of the total elapsed time of the sample interval to the number of processes or operations completed during that time. This counter type measures time in ticks of the system clock.
A difference counter that shows the change in the measured attribute between the two most recent sample intervals.
A difference counter that shows the change in the measured attribute between the two most recent sample intervals. It is the same as the CounterDelta32 counter type except that is uses larger fields to accomodate larger values.
A base counter that indicates the number of items sampled. It is used as the denominator in the calculations to get an average among the items sampled when taking timings of multiple, but similar items. Used with CounterMultiTimer, CounterMultiTimerInverse, CounterMultiTimer100Ns, and CounterMultiTimer100NsInverse.
A percentage counter that displays the active time of one or more components as a percentage of the total time of the sample interval. Because the numerator records the active time of components operating simultaneously, the resulting percentage can exceed 100 percent.
A percentage counter that shows the active time of one or more components as a percentage of the total time of the sample interval. It measures time in 100 nanosecond (ns) units.
A percentage counter that shows the active time of one or more components as a percentage of the total time of the sample interval. Counters of this type measure time in 100 nanosecond (ns) units. They derive the active time by measuring the time that the components were not active and subtracting the result from multiplying 100 percent by the number of objects monitored.
A percentage counter that shows the active time of one or more components as a percentage of the total time of the sample interval. It derives the active time by measuring the time that the components were not active and subtracting the result from 100 percent by the number of objects monitored.
A percentage counter that shows the average time that a component is active as a percentage of the total sample time.
A percentage counter that displays the average percentage of active time observed during sample interval. The value of these counters is calculated by monitoring the percentage of time that the service was inactive and then subtracting that value from 100 percent.
An average counter designed to monitor the average length of a queue to a resource over time. It shows the difference between the queue lengths observed during the last two sample intervals divided by the duration of the interval. This type of counter is typically used to track the number of items that are queued or waiting.
An average counter that monitors the average length of a queue to a resource over time. Counters of this type display the difference between the queue lengths observed during the last two sample intervals, divided by the duration of the interval. This counter type is the same as CountPerTimeInterval32 except that it uses larger fields to accommodate larger values. This type of counter is typically used to track a high-volume or very large number of items that are queued or waiting.
A difference timer that shows the total time between when the component or process started and the time when this value is calculated.
An instantaneous counter that shows the most recently observed value. Used, for example, to maintain a simple count of items or operations.
An instantaneous counter that shows the most recently observed value. Used, for example, to maintain a simple count of a very large number of items or operations. It is the same as NumberOfItems32 except that it uses larger fields to accommodate larger values.
An instantaneous counter that shows the most recently observed value in hexadecimal format. Used, for example, to maintain a simple count of items or operations.
An instantaneous counter that shows the most recently observed value. Used, for example, to maintain a simple count of a very large number of items or operations. It is the same as NumberOfItemsHEX32 except that it uses larger fields to accommodate larger values.
A difference counter that shows the average number of operations completed during each second of the sample interval. Counters of this type measure time in ticks of the system clock.
A difference counter that shows the average number of operations completed during each second of the sample interval. Counters of this type measure time in ticks of the system clock. This counter type is the same as the RateOfCountsPerSecond32 type, but it uses larger fields to accommodate larger values to track a high-volume number of items or operations per second, such as a byte-transmission rate.
A base counter that stores the denominator of a counter that presents a general arithmetic fraction. Check that this value is greater than zero before using it as the denominator in a RawFraction value calculation.
An instantaneous percentage counter that shows the ratio of a subset to its set as a percentage. For example, it compares the number of bytes in use on a disk to the total number of bytes on the disk. Counters of this type display the current percentage only, not an average over time.
A base counter that stores the number of sampling interrupts taken and is used as a denominator in the sampling fraction. The sampling fraction is the number of samples that were 1 (or true) for a sample interrupt. Check that this value is greater than zero before using it as the denominator in a calculation of SampleFraction.
An average counter that shows the average number of operations completed in one second. When a counter of this type samples the data, each sampling interrupt returns one or zero. The counter data is the number of ones that were sampled. It measures time in units of ticks of the system performance timer.
A percentage counter that shows the average ratio of hits to all operations during the last two sample intervals.
A percentage counter that shows the active time of a component as a percentage of the total elapsed time of the sample interval. It measures time in units of 100 nanoseconds (ns). Counters of this type are designed to measure the activity of one component at a time.
A percentage counter that shows the average percentage of active time observed during the sample interval.