34 return _collector_index;
45 if (_time_width != time_width) {
47 _start_time += _time_width - time_width;
51 _time_width = time_width;
74 if (_value_height != value_height) {
75 _value_height = value_height;
102 if (_scroll_mode != scroll_mode) {
103 _scroll_mode = scroll_mode;
134 if (_average_mode != average_mode) {
135 _average_mode = average_mode;
152 return _average_mode;
162 return (
int)((double)
get_xsize() * (time - _start_time) / _time_width);
172 return _time_width * (double)x / (
double)
get_xsize() + _start_time;
204 INLINE
bool PStatStripChart::
205 is_label_used(
int collector_index)
const {
206 if (collector_index < (
int)_label_usage.size()) {
207 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 height_to_pixel(double value) const
Converts a value (i.e.
double pixel_to_height(int y) const
Converts a vertical pixel offset to a value (a "height" in the strip chart).
int get_ysize() const
Returns the height of the chart in pixels.
void set_vertical_scale(double value_height)
Changes the value the height of the vertical axis represents.
bool get_scroll_mode() const
Returns the current state of the scroll_mode flag.
int timestamp_to_pixel(double time) const
Converts a timestamp to a horizontal pixel offset.
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.
int get_collector_index() const
Returns the particular collector whose data this strip chart reflects.
A View boils down the frame data to a linear list of times spent in a number of different Collectors...
int get_xsize() const
Returns the width of the chart in pixels.
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.
PStatView & get_view() const
Returns the View this chart represents.
double get_horizontal_scale() const
Returns the amount of total time the width of the horizontal axis represents.
void set_scroll_mode(bool scroll_mode)
Changes the scroll_mode flag.