Programmed Profiling

2.2 Structure

The first two elements in the structure are the number of objects to monitor and the maximum number of seconds that monitoring will be done. These values are used to dimension arrays that hold the output values. The third element is a handle to the character array that holds the strings defining the counter objects to use. The fourth element is a handle to the unsigned integer array containing the counter results. The fifth and sixth elements contain data that are generated and used in the library and can be safely ignored by the user.

At the beginning of the program a ProfThread structure should be declared and its first four elements should be initialized.