Name

sg_get_cpu_stats, sg_get_cpu_stats_r, sg_get_cpu_stats_diff, sg_get_cpu_stats_diff_between, sg_get_cpu_percents, sg_get_cpu_percents_of, sg_get_cpu_percents_r, sg_free_cpu_stats — get cpu usage

Synopsis

#include <statgrab.h>
sg_cpu_percents *fsfuncsg_get_cpu_percents(entries); 
size_t *entries;
 
sg_cpu_percents *fsfuncsg_get_cpu_percents_of(cps,  
 entries); 
sg_cpu_percent_source cps;
size_t *entries;
 
sg_cpu_percents *fsfuncsg_get_cpu_percents_r(whereof,  
 entries); 
const sg_cpu_stats *whereof;
size_t *entries;
 
void fsfuncsg_free_cpu_percents(data); 
sg_cpu_percents *data;
 
sg_cpu_stats *fsfuncsg_get_cpu_stats(entries); 
size_t *entries;
 
sg_cpu_stats *fsfuncsg_get_cpu_stats_diff(entries); 
size_t *entries;
 
sg_cpu_stats *fsfuncsg_get_cpu_stats_r(entries); 
size_t *entries;
 
sg_cpu_stats *fsfuncsg_get_cpu_stats_diff_between(cpu_nowcpu_last,  
 entries); 
const sg_cpu_stats *cpu_now, const sg_cpu_stats *cpu_last;
size_t *entries;
 
sg_error fsfuncsg_free_cpu_stats(data); 
sg_cpu_stats *data;