Lines Matching defs:counters

166 // The index value for the base system counters and objects like processor,
257 * Struct for the processor load counters.
261 HCOUNTER* counters;
276 * Currently available counters.
346 // (PDH behaves erratically if the counters are
347 // queried too often, especially counters that
383 /* printf("performance counters. If you are running on Windows 2003"); */
471 * the necessary info to check the PDH processor counters.
491 // counters. This was previously guarded by a very ugly piece of code which disabled the
499 /* printf("User does not have sufficient privileges to use performance counters"); */
553 //ok, have number of perf counters.
554 multiCounterCPULoad.counters = calloc(p_count, sizeof(HCOUNTER));
555 if (multiCounterCPULoad.counters == NULL) {
568 //now, fetch the counters.
574 if (PdhAddCounter_i(multiCounterCPULoad.query.query, counter, 0, &multiCounterCPULoad.counters[i]) != ERROR_SUCCESS) {
584 // Query once to initialize the counters needing at least two queries
599 if (multiCounterCPULoad.counters != NULL) {
601 if (multiCounterCPULoad.counters[i] != NULL) {
602 PdhRemoveCounter_i(multiCounterCPULoad.counters[i]);
605 free(multiCounterCPULoad.counters[i]);
719 //now, fetch the counters.
755 * counters.
783 * counters from the PDH process object representing HotSpot.
790 * @return the header to be used when retrieving PDH counters from the HotSpot process.
824 c = multiCounterCPULoad.counters[multiCounterCPULoad.noOfCounters - 1];
827 c = multiCounterCPULoad.counters[which];
909 /* printf("Failed to init system load counters.\n"); */