aboutsummaryrefslogtreecommitdiffstats
path: root/trace-graph.h
diff options
context:
space:
mode:
Diffstat (limited to 'trace-graph.h')
-rw-r--r--trace-graph.h42
1 files changed, 19 insertions, 23 deletions
diff --git a/trace-graph.h b/trace-graph.h
index e45b37a..caa2531 100644
--- a/trace-graph.h
+++ b/trace-graph.h
@@ -8,24 +8,29 @@ struct graph_info {
8 struct pevent *pevent; 8 struct pevent *pevent;
9 gint cpus; 9 gint cpus;
10 GtkWidget *draw; 10 GtkWidget *draw;
11 GdkPixmap *main_pixmap; 11 GdkPixmap *curr_pixmap; /* pixmap backstore */
12 GdkPixmap *curr_pixmap; 12 GtkAdjustment *vadj; /* scrollwindow vert adjust */
13 GtkAdjustment *vadj; 13 guint64 start_time; /* True start time of trace */
14 guint64 start_time; 14 guint64 end_time; /* True end time of trace */
15 guint64 end_time; 15 guint64 view_start_time; /* visible start time */
16 guint64 view_start_time; 16 guint64 view_end_time; /* visible end time */
17 guint64 view_end_time; 17 gint start_x; /* virutal start of visible area */
18 18
19 gdouble resolution; 19 gdouble resolution; /* pixels / time */
20 20
21 gint start_x; 21 gint press_x; /* x where button is pressed */
22 gint last_x; 22 gint last_x; /* last x seen while moving mouse */
23 gboolean line_active; 23 gboolean line_active; /* set when button is pressed */
24 gdouble vadj_value;
25 24
26 gint draw_width; 25 gdouble vadj_value; /* value to set vadj width */
27 gint draw_height; 26 gdouble vadj_page_size; /* visible size to set vadj */
28 27
28 gint draw_width; /* width of pixmap */
29 gint draw_height; /* height of pixmap */
30 gint full_width; /* width of full trace in pixels */
31 /* This includes non visible part of trace */
32
33 /* Box info for CPU data info window */
29 gint cpu_data_x; 34 gint cpu_data_x;
30 gint cpu_data_y; 35 gint cpu_data_y;
31 gint cpu_data_w; 36 gint cpu_data_w;
@@ -33,15 +38,6 @@ struct graph_info {
33 38
34 /* not needed in future */ 39 /* not needed in future */
35 40
36 gint last_y;
37 gint mov_w;
38 gint mov_h;
39
40 gint max_width;
41 gint max_height;
42
43 gboolean save;
44 gboolean draw_line;
45 gchar *test; 41 gchar *test;
46}; 42};
47 43