A Simple Data-Consumer Program

The use of the application programming interface (API) is illustrated by creating a small data-consumer program to produce a continuous list of statistics from a host.

The first version accesses only CPU-related statistics. It assumes that you want to get your statistics from the local host unless you specify a host name on the command line. The program continues to display the statistics until it is killed. The source code for the sample program can be found in the /usr/samples/perfmgr/RsiCons1.c file.