Skip to content

CPU

Inherits: Resource

Read and manage the system CPU

Properties

Type Name Default
int core_count get_total_core_count()
String vendor
String model
CustomLogger logger

Methods

Returns Signature
int get_enabled_core_count()
CPUCore get_core(num: int)
CPUCore[] get_cores()
int get_total_core_count()
int get_online_core_count()

Property Descriptions

core_count

int core_count = get_total_core_count()

Note

There is currently no description for this property. Please help us by contributing one!

vendor

String vendor

Note

There is currently no description for this property. Please help us by contributing one!

model

String model

Note

There is currently no description for this property. Please help us by contributing one!

logger

CustomLogger logger

Note

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

get_enabled_core_count()

int get_enabled_core_count()

Returns the count of number of enabled CPU cores

get_core()

CPUCore get_core(num: int)

Returns an instance of the given CPU core

get_cores()

CPUCore[] get_cores()

Returns an array of all CPU cores

get_total_core_count()

int get_total_core_count()

Returns the total number of detected CPU cores

get_online_core_count()

int get_online_core_count()

Returns the total number of CPU cores that are online