CentralProcessor
CentralProcessor
interface provides detailed information and metrics about the central processor of a system It includes properties to retrieve processor specifications, performance data, and load statistics
This interface is intended to be implemented by platform-specific classes to provide processor details and performance metrics across different systems
Author
N7ghtm4r3
Inheritors
Properties
contextSwitches
the number of context switches performed by the processor
currentFreq
an array representing the current frequency of each logical processor in Hz
featureFlags
a list of supported processor features (eg, virtualization, specific instruction sets)
interrupts
the number of interrupts processed by the processor
logicalProcessorCount
the total number of logical processors in the system
logicalProcessors
a list of logical processors available in the system
physicalPackageCount
the total number of physical processor packages in the system
physicalProcessorCount
the total number of physical processors (cores) in the system
physicalProcessors
a list of physical processors (cores) available in the system
processorCaches
a list of caches associated with the processor
processorCpuLoadTicks
an array of arrays representing CPU load ticks for each logical processor
processorIdentifier
the identifier of the processor, providing details like name and architecture
systemCpuLoadTicks
an array representing CPU load ticks for the entire system
Functions
Retrieves the processor CPU load as a percentage between the current ticks and the specified oldTickets
Calculates the system CPU load over a specified delay period
Retrieves the system CPU load as a percentage between the current ticks and the specified oldTickets
Retrieves the system load average for the last nelem
intervals