cgal/Profiling_tools/examples/Profiling_tools/Profile_histogram_counter.cpp

14 lines
213 B
C++

#define CGAL_PROFILE
#include <CGAL/Profile_counter.h>
int main()
{
for (int i=0; i<10; ++i)
{
for (int j=0; j<i; ++j)
CGAL_HISTOGRAM_PROFILER("[iterations of the for-loop]", j);
}
return 0;
}