Synesis Software

Resource Usage API
[Synesis Software UNIX Emulation for Win32]

Resource usage functions and types. More...

Classes

struct  rusage
 Resource usage information structure. More...

Defines

#define RUSAGE_SELF   (0)
 Requests that rusage() provide information about the calling process.
#define RUSAGE_CHILDREN   (-1)

Functions

int getrusage (int who, struct rusage *r_usage)
 Provide resource usage information.

Detailed Description

Resource usage functions and types.


Define Documentation

#define RUSAGE_CHILDREN   (-1)

#define RUSAGE_SELF   (0)

Requests that rusage() provide information about the calling process.

Note:
This flag is not supported


Function Documentation

int getrusage ( int  who,
struct rusage r_usage 
)

Provide resource usage information.

Retrieves resource usage information about the given process(es).

Parameters:
who The process(es) about which the usage information is to be retrieved. One of RUSAGE_SELF or RUSAGE_CHILDREN.
r_usage Pointer to an rusage structure to receive the rusage information.
Note:
This implementation only supports the RUSAGE_SELF flag for the who parameter.


UNIX Emulation for Win32 Libraries documentation © Synesis Software Pty Ltd, 2002-2005