27 return _collector_index;
36 if (_time_width != time_width) {
38 _start_time += _time_width - time_width;
42 _time_width = time_width;
61 if (_value_height != value_height) {
62 _value_height = value_height;
83 if (_scroll_mode != scroll_mode) {
84 _scroll_mode = scroll_mode;
108 if (_average_mode != average_mode) {
109 _average_mode = average_mode;
122 return _average_mode;
130 return (
int)((double)
get_xsize() * (time - _start_time) / _time_width);
138 return _time_width * (double)x / (
double)
get_xsize() + _start_time;
163 INLINE
bool PStatStripChart::
164 is_label_used(
int collector_index)
const {
165 if (collector_index < (
int)_label_usage.size()) {
166 return _label_usage[collector_index] > 0;
void set_horizontal_scale(double time_width)
Changes the amount of time the width of the horizontal axis represents.
int get_xsize() const
Returns the width of the chart in pixels.
double get_horizontal_scale() const
Returns the amount of total time the width of the horizontal axis represents.
int get_ysize() const
Returns the height of the chart in pixels.
int timestamp_to_pixel(double time) const
Converts a timestamp to a horizontal pixel offset.
void set_vertical_scale(double value_height)
Changes the value the height of the vertical axis represents.
double pixel_to_height(int y) const
Converts a vertical pixel offset to a value (a "height" in the strip chart).
int get_collector_index() const
Returns the particular collector whose data this strip chart reflects.
PStatView & get_view() const
Returns the View this chart represents.
int height_to_pixel(double value) const
Converts a value (i.e.
A View boils down the frame data to a linear list of times spent in a number of different Collectors,...
bool get_average_mode() const
Returns the current state of the average_mode flag.
double pixel_to_timestamp(int x) const
Converts a horizontal pixel offset to a timestamp.
void set_average_mode(bool average_mode)
Changes the average_mode flag.
double get_vertical_scale() const
Returns total value the height of the vertical axis represents.
bool get_scroll_mode() const
Returns the current state of the scroll_mode flag.
void set_scroll_mode(bool scroll_mode)
Changes the scroll_mode flag.