PreviousNext

Statistics Vector

The statistics vector data structure contains statistics from the RPC runtime on a per address space basis. The statistics vector contains a count member (count), followed by an array of statistics. Each array element contains an unsigned32 value. The following list describes the statistics indexed by the specified constant:

rpc_c_stats_calls_in The number of remote procedure calls received by the runtime.
rpc_c_stats_calls_out The number of remote procedure calls initiated by the runtime.
rpc_c_stats_pkts_in The number of network packets received by the runtime.
rpc_c_stats_pkts_out The number of network packets sent by the runtime.
The C language representation of a statistics vector is as follows:

typedef struct {
unsigned32 count;
unsigned32 stats[1];
} rpc_stats_vector_t;

To obtain runtime statistics, an application calls therpc_mgmt_inq_stats( ) routine. The RPC runtime allocates memory for the statistics vector. The application calls the rpc_mgmt_stats_vector_free( ) routine to free the statistics vector.