SDDS ToolKit Programs and Libraries for C and Python
|
Provides functions for collecting run-time statistics such as CPU time, memory usage, I/O counts, and elapsed time.
This file contains implementations of functions like init_stats()
, cpu_time()
, memory_count()
, and others, which collect various run-time statistics. The implementations vary depending on the operating system (VAX/VMS, SUN UNIX, Linux, Solaris, etc.). The functions utilize system-specific libraries and system calls to retrieve the necessary information.
Definition in file timer.c.
#include "mdb.h"
#include <sys/time.h>
Go to the source code of this file.
Functions | |
double | delapsed_time () |
Calculates the elapsed clock time since the last initialization as a numerical value. | |
char * | elapsed_time () |
void | init_stats () |
long | cpu_time () |
Retrieves the CPU time used since the last initialization. | |
long | bio_count () |
long | dio_count () |
long | page_faults () |
Retrieves the number of page faults since the last initialization. | |
long | memory_count () |
long cpu_time | ( | ) |
Retrieves the CPU time used since the last initialization.
This function retrieves the CPU time consumed by the process since init_stats()
was last called.
Definition at line 117 of file timer.c.
double delapsed_time | ( | void | ) |
Calculates the elapsed clock time since the last initialization as a numerical value.
This function calculates the elapsed time in seconds since init_stats()
was last called.
Definition at line 92 of file timer.c.
char * elapsed_time | ( | ) |
Definition at line 30 of file timer.c.
void init_stats | ( | ) |
long page_faults | ( | ) |