cnet v3.1.4

home
FAQ

cmdline options
topology files
attributes

datatypes
data structures
core API
support API

download/install

cnet's Application Programming Interface

NAME
CNET_get_nodestats - obtain runtime statistics about the current node

SYNOPSIS
#include <cnet.h>

typedef struct {
    int64_t     nevents;
    int64_t     nerrors;

    int64_t     msgs_generated;
    int64_t     bytes_generated;

    int64_t     msgs_received;
    int64_t     bytes_received;
} CnetNodeStats;
int CNET_get_nodestats(CnetNodeStats *stats);

DESCRIPTION
CNET_get_nodestats() provides the current node with statistics about its own execution.

A node's statistics are cleared when the node reboots. The "sum" of each node's statistics form the global node statistics which are reported on the GUI and may be requested with the -s command-line option.

RETURN VALUE
The value 0 is returned on success. On failure, the value -1 is returned, and the global variable cnet_errno is set to one of the following values to describe the error:

ER_BADARG
stats was a NULL pointer.

SEE ALSO
CNET_get_linkstats.

cnet was written and is maintained by Chris McDonald (chris@csse.uwa.edu.au).

cnet development has been supported by an ACM-SIGCSE Special Project Grant, and an Australian Apple University Consortium Scholarship.