31 std::cerr <<
"Run statistics for " << tracer->function <<
":\n"
32 <<
"Runs:\t" << std::dec << tracer->run <<
"\n";
34 typedef std::pair<std::pair<int, std::string>,
int> thack;
35 size_t maximum_length = 0;
36 for(
const thack&
counter : tracer->counters) {
37 maximum_length = std::max(
39 , counter.first.second.length());
42 std::ios_base::fmtflags original_flag = std::cerr.setf(
44 , std::ios_base::adjustfield);
46 for(
const thack& counter : tracer->counters) {
47 std::cerr <<
"Marker: "
49 << std::setw(maximum_length) << counter.first.second
51 <<
" [" << std::setw(5) << counter.first.first <<
']'
52 <<
" hits " << counter.second <<
"\n";
55 std::cerr.setf(original_flag, std::ios_base::adjustfield);
GLint GLint GLsizei GLuint * counters
Helper structure for gathering the tracing statistics.
const char *const function
The function being traced.
int run
The total number of runs.
ttracer(const char *const function__)
Contains code for tracing the code.
tprint(const ttracer *const tracer__)