mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Cosmetics.
This commit is contained in:
parent
b7a27d02af
commit
12f693372a
@ -62,7 +62,7 @@ void SysTime::ReadTimes()
|
|||||||
{
|
{
|
||||||
host_cpu_load_info_data_t info;
|
host_cpu_load_info_data_t info;
|
||||||
mach_msg_type_number_t cnt = HOST_CPU_LOAD_INFO_COUNT;
|
mach_msg_type_number_t cnt = HOST_CPU_LOAD_INFO_COUNT;
|
||||||
host_statistics( mach_host_self(), HOST_CPU_LOAD_INFO, reinterpret_cast<host_info_t>( &info ), &cnt );
|
host_statistics( mach_host_self(), HOST_CPU_LOAD_INFO, reinterpret_cast<host_info_t>( &info ), &cnt );
|
||||||
used = info.cpu_ticks[CPU_STATE_USER] + info.cpu_ticks[CPU_STATE_NICE] + info.cpu_ticks[CPU_STATE_SYSTEM];
|
used = info.cpu_ticks[CPU_STATE_USER] + info.cpu_ticks[CPU_STATE_NICE] + info.cpu_ticks[CPU_STATE_SYSTEM];
|
||||||
idle = info.cpu_ticks[CPU_STATE_IDLE];
|
idle = info.cpu_ticks[CPU_STATE_IDLE];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user