Interface IPerformanceMetricsAddon
Represents a service interface for monitoring and retrieving performance metrics of the current application, including CPU usage, memory usage, disk I/O, and more.
Namespace: EyeAuras.Shared.Services
Assembly: EyeAuras.Shared.dll
Syntax
public interface IPerformanceMetricsAddon
Properties
| Name | Description |
|---|---|
| AppHookIsActive | Gets a value indicating whether the application-level hook is currently active. |
| DiskReadOperationCount | Gets the number of disk read operations performed by the process. |
| DiskReads | Gets the total amount of data read from disk by the process. |
| DiskWriteOperationCount | Gets the number of disk write operations performed by the process. |
| DiskWrites | Gets the total amount of data written to disk by the process. |
| Fragmented | Gets the amount of fragmented memory within the managed heap. |
| HandleCount | Gets the total number of handles opened by the current process. |
| Heap | Gets the size of the managed heap allocated by the process. |
| IsEnabled | Gets or sets a value indicating whether performance monitoring is enabled. |
| Native | Gets the size of native memory allocated by the process. |
| ProcessorTimePercent | Gets the percentage of CPU time used by the current process. |
| SystemHookIsActive | Gets a value indicating whether the system-level hook is currently active. |
| ThreadCount | Gets the total number of threads in the current process. |
| UserTimePercent | Gets the percentage of CPU time spent in user mode by the current process. |
| WorkingPrivateSet | Gets the amount of private memory currently used by the process. |
| WorkingSet | Gets the amount of memory currently used by the process, including shared memory. |
Methods
| Name | Description |
|---|---|
| CollectGarbage() | Triggers garbage collection in the application and logs statistics before and after the collection. |