5#include <cgv/utils/stopwatch.h>
6#include <cgv/media/axis_aligned_box.h>
7#include <cgv/media/color.h>
27 performance_measurement(
double _time,
int _task_id,
bool _start) : time(_time), task_id(_task_id), start(_start) {}
45 typedef std::vector<performance_measurement> frame_data;
54 int nr_display_cycles;
57 std::string file_name;
58 std::vector<performance_task> tasks;
59 std::deque<frame_data> data;
60 std::vector<PerformanceMonitoringBar> bar_config;
64 std::vector<ivec2> positions;
65 std::vector<rgb> colors;
67 void compute_colors(
const frame_data& fdata);
68 void compute_positions(
int x,
int y,
int dx,
int dy,
const frame_data& fdata);
69 frame_data& current_frame();
78 void set_file_name(
const std::string& _file_name);
80 const std::string& get_file_name()
const {
return file_name; }
94 int add_task(
const std::string& name,
const rgb& col);
102 void start_task(
int task_id);
104 void finish_task(
int task_id);
116 void set_placement(
const ibox2& rectangle);
120 void set_nr_display_cycles(
unsigned _nr_cycles);
129#include <cgv/config/lib_end.h>
A trivial stop watch class for time measurement.
PerformanceMonitoringBar
different items that can be shown in the long bar