X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=iowatcher%2Fplot.h;h=fb9c63b5fba14790e41214563505e176a58bd173;hb=230f060187f09a71185d1321192a497e6a344f80;hp=e5279158debf21a412ebc9ec42ad25e4c93e4175;hpb=f752a6eb5f4b2b0b2af547044b14e94694860e83;p=blktrace.git diff --git a/iowatcher/plot.h b/iowatcher/plot.h index e527915..fb9c63b 100644 --- a/iowatcher/plot.h +++ b/iowatcher/plot.h @@ -68,7 +68,10 @@ struct graph_line_pair { }; struct graph_line_data { - /* total number of seconds in this graph */ + /* beginning of an interval displayed by this graph */ + int min_seconds; + + /* end of an interval displayed by this graph */ int max_seconds; int stop_seconds; @@ -96,7 +99,10 @@ struct graph_dot_data { /* in pixels, number of cols in our bitmap */ int cols; - /* total number of seconds in this graph */ + /* beginning of an interval displayed by this graph */ + int min_seconds; + + /* end of an interval displayed by this graph */ int max_seconds; int stop_seconds; @@ -119,9 +125,9 @@ struct plot_history { int svg_io_graph(struct plot *plot, struct graph_dot_data *gdd, char *color); int svg_line_graph(struct plot *plot, struct graph_line_data *gld, char *color, int thresh1, int thresh2); -struct graph_line_data *alloc_line_data(int max_seconds, int stop_seconds); +struct graph_line_data *alloc_line_data(int min_seconds, int max_seconds, int stop_seconds); void free_line_data(struct graph_line_data *gld); -struct graph_dot_data *alloc_dot_data(int max_seconds, u64 min_offset, u64 max_offset, int stop_seconds); +struct graph_dot_data *alloc_dot_data(int min_seconds, int max_seconds, u64 min_offset, u64 max_offset, int stop_seconds); void free_dot_data(struct graph_dot_data *gdd); void set_gdd_bit(struct graph_dot_data *gdd, u64 offset, double bytes, double time); void print_gdd(struct graph_dot_data *gdd);