public interface Perfstat extends Library
Modifier and Type | Interface and Description |
---|---|
static class |
Perfstat.perfstat_cpu_t |
static class |
Perfstat.perfstat_cpu_total_t |
static class |
Perfstat.perfstat_disk_t |
static class |
Perfstat.perfstat_id_t |
static class |
Perfstat.perfstat_memory_total_t |
static class |
Perfstat.perfstat_netinterface_t |
static class |
Perfstat.perfstat_partition_config_t |
static class |
Perfstat.perfstat_process_t |
static class |
Perfstat.perfstat_protocol_t |
static class |
Perfstat.perfstat_value_t |
Library.Handler
Modifier and Type | Field and Description |
---|---|
static int |
IDENTIFIER_LENGTH |
static Perfstat |
INSTANCE |
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER
Modifier and Type | Method and Description |
---|---|
int |
perfstat_cpu_total(Perfstat.perfstat_id_t name,
Perfstat.perfstat_cpu_total_t cpu,
int sizeof_struct,
int desired_number)
Retrieves total processor usage metrics
|
int |
perfstat_cpu(Perfstat.perfstat_id_t name,
Perfstat.perfstat_cpu_t[] cpu,
int sizeof_struct,
int desired_number)
Retrieves individual processor usage metrics
|
int |
perfstat_disk(Perfstat.perfstat_id_t name,
Perfstat.perfstat_disk_t[] disks,
int sizeof_struct,
int desired_number)
Retrieves disk statistics
|
int |
perfstat_memory_total(Perfstat.perfstat_id_t name,
Perfstat.perfstat_memory_total_t mem,
int sizeof_struct,
int desired_number)
Retrieves total memory-related metrics
|
int |
perfstat_netinterface(Perfstat.perfstat_id_t name,
Perfstat.perfstat_netinterface_t[] netints,
int sizeof_struct,
int desired_number)
Retrieves network interfaces
|
int |
perfstat_partition_config(Perfstat.perfstat_id_t name,
Perfstat.perfstat_partition_config_t config,
int sizeof_struct,
int desired_number)
Retrieves total memory-related metrics
|
int |
perfstat_process(Perfstat.perfstat_id_t name,
Perfstat.perfstat_process_t[] procs,
int sizeof_struct,
int desired_number)
Retrieves process-related metrics
|
int |
perfstat_protocol(Perfstat.perfstat_id_t name,
Perfstat.perfstat_protocol_t[] protocols,
int sizeof_struct,
int desired_number)
Retrieves protocol data
|
static final Perfstat INSTANCE
static final int IDENTIFIER_LENGTH
int perfstat_cpu_total(Perfstat.perfstat_id_t name, Perfstat.perfstat_cpu_total_t cpu, int sizeof_struct, int desired_number)
name
- Reserved for future use, must be NULLcpu
- Populated with structuresizeof_struct
- Should be set to sizeof(perfstat_cpu_total_t)desired_number
- Reserved for future use, must be set to 0 or 1int perfstat_cpu(Perfstat.perfstat_id_t name, Perfstat.perfstat_cpu_t[] cpu, int sizeof_struct, int desired_number)
name
- Structure containing empty string when collecting all cpu stats,
or null to count CPUscpu
- Populated with structures, or null to count CPUssizeof_struct
- Should be set to sizeof(perfstat_cpu_t)desired_number
- Set to 0 to count CPUs, set to number of cpus to return otherwiseint perfstat_memory_total(Perfstat.perfstat_id_t name, Perfstat.perfstat_memory_total_t mem, int sizeof_struct, int desired_number)
name
- Reserved for future use, must be NULLmem
- Populated with structuresizeof_struct
- Should be set to sizeof(perfstat_memory_total_t)desired_number
- Reserved for future use, must be set to 0 or 1int perfstat_process(Perfstat.perfstat_id_t name, Perfstat.perfstat_process_t[] procs, int sizeof_struct, int desired_number)
name
- Structure containing empty string when collecting all process
stats, or null to count processesprocs
- Populated with structuresizeof_struct
- Should be set to sizeof(perfstat_process_t)desired_number
- Set to 0 to count processes, set to number of processes to return
otherwiseint perfstat_disk(Perfstat.perfstat_id_t name, Perfstat.perfstat_disk_t[] disks, int sizeof_struct, int desired_number)
name
- Structure containing empty string when collecting all disk stats,
or null to count block disksdisks
- Populated with structures, or null to count diskssizeof_struct
- Should be set to sizeof(perfstat_disk_t)desired_number
- Set to 0 to count disks, set to number of disks to return
otherwiseint perfstat_partition_config(Perfstat.perfstat_id_t name, Perfstat.perfstat_partition_config_t config, int sizeof_struct, int desired_number)
name
- Reserved for future use, must be NULLconfig
- Populated with structuresizeof_struct
- Should be set to sizeof(perfstat_partition_config_t)desired_number
- Reserved for future use, must be set to 0 or 1int perfstat_netinterface(Perfstat.perfstat_id_t name, Perfstat.perfstat_netinterface_t[] netints, int sizeof_struct, int desired_number)
name
- Structure containing empty string when collecting all interface
stats, or null to count interfacesnetints
- Populated with structures, or null to count interfacessizeof_struct
- Should be set to sizeof(perfstat_netinterface_t)desired_number
- Set to 0 to count network interfaces, set to number of interfaces
to return otherwiseint perfstat_protocol(Perfstat.perfstat_id_t name, Perfstat.perfstat_protocol_t[] protocols, int sizeof_struct, int desired_number)
name
- Structure containing empty string when collecting all protocol
stats, or null to count statsprotocols
- Populated with structures, or null to count protocolssizeof_struct
- Should be set to sizeof(perfstat_protocol_t)desired_number
- Set to 0 to count protocols, set to number of protocols to return
otherwise