Home
last modified time | relevance | path

Searched refs:ps_cpus (Results 1 – 1 of 1) sorted by relevance

/libuv/src/unix/
H A Daix.c1063 perfstat_cpu_t* ps_cpus; in uv_cpu_info() local
1077 ps_cpus = (perfstat_cpu_t*) uv__malloc(ncpus * sizeof(perfstat_cpu_t)); in uv_cpu_info()
1078 if (!ps_cpus) { in uv_cpu_info()
1084 result = perfstat_cpu(&cpu_id, ps_cpus, sizeof(perfstat_cpu_t), ncpus); in uv_cpu_info()
1086 uv__free(ps_cpus); in uv_cpu_info()
1092 uv__free(ps_cpus); in uv_cpu_info()
1102 cpu_info->cpu_times.user = ps_cpus[idx].user; in uv_cpu_info()
1103 cpu_info->cpu_times.sys = ps_cpus[idx].sys; in uv_cpu_info()
1104 cpu_info->cpu_times.idle = ps_cpus[idx].idle; in uv_cpu_info()
1105 cpu_info->cpu_times.irq = ps_cpus[idx].wait; in uv_cpu_info()
[all …]

Completed in 8 milliseconds