dtrace_aggregate_print() Function

In Embedding DTrace in a Consumer, when the loop is finished, the consumer calls the dtrace_aggregate_print() function to print the results of any aggregation data that was collected during the run.

int dtrace_aggregate_print(dtrace_hdl_t *dtp, FILE *fp, dtrace_aggregate_walk_f *func)

The arguments to the dtrace_aggregate_print() function are:

  • DTrace handle.

  • File handle to which the output data is directed.

  • Pointer to a function, which controls how the data is printed. The libdtrace library provides a number of options to print aggregation data. You can also write a custom printing function. If the consumer does not specify any function, the default DTrace behavior prints the output sorted by the aggregated value for each tuple.