use state seek closest, incomplete data ok
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 3 Feb 2004 22:46:33 +0000 (22:46 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 3 Feb 2004 22:46:33 +0000 (22:46 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@476 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c
ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c

index 2d05906c87c42ec8a5c7ef90c21a523c671df494..6edf56684bb6f326599170d31721709871651c76 100644 (file)
@@ -107,6 +107,8 @@ void drawing_data_request(Drawing_t *drawing,
   
   LttvTracesetContext * tsc =
         get_traceset_context(control_flow_data->mw);
+  LttvTracesetState * tss =
+        LTTV_TRACESET_STATE(tsc);
   
     //send_test_process(
   //guicontrolflow_get_process_list(drawing->control_flow_data),
@@ -138,7 +140,8 @@ void drawing_data_request(Drawing_t *drawing,
   //state_add_event_hooks_api(control_flow_data->mw);
   lttv_hooks_add(after_event, draw_after_hook, &event_request);
 
-  lttv_process_traceset_seek_time(tsc, start);
+  //lttv_process_traceset_seek_time(tsc, start);
+  lttv_state_traceset_seek_time_closest(tss, start);
   // FIXME : would like to place the after_traceset hook after the traceset,
   // but the traceset context state is not valid anymore.
   lttv_traceset_context_add_hooks(tsc,
index ea08a9d7bbac082cc0374e0c94651244b531c2dd..ea7080f71b1e7b0694288e6898b624355f97cd0d 100644 (file)
@@ -304,8 +304,8 @@ int draw_event_hook(void *hook_data, void *call_data)
     else if(process_out->state->s == LTTV_STATE_WAIT_FORK)
     {
       prop_text_out.foreground->red = 0x0fff;
-      prop_text_out.foreground->green = 0x0000;
-      prop_text_out.foreground->blue = 0x0fff;
+      prop_text_out.foreground->green = 0xffff;
+      prop_text_out.foreground->blue = 0xfff0;
     }
     else if(process_out->state->s == LTTV_STATE_WAIT_CPU)
     {
@@ -338,6 +338,7 @@ int draw_event_hook(void *hook_data, void *call_data)
       prop_text_out.foreground->blue = 0xffff;
     }
  
+    
     /* Print status of the process : U, WF, WC, E, W, R */
     if(process_out->state->s == LTTV_STATE_UNNAMED)
       prop_text_out.text = "U->";
@@ -378,6 +379,8 @@ int draw_event_hook(void *hook_data, void *call_data)
     prop_line_out.line_width = 2;
     prop_line_out.style = GDK_LINE_SOLID;
     prop_line_out.position = MIDDLE;
+    
+    g_critical("out state : %s", g_quark_to_string(process_out->state->s));
 
     /* color of line : status of the process */
     if(process_out->state->s == LTTV_STATE_UNNAMED)
@@ -389,8 +392,8 @@ int draw_event_hook(void *hook_data, void *call_data)
     else if(process_out->state->s == LTTV_STATE_WAIT_FORK)
     {
       prop_line_out.color->red = 0x0fff;
-      prop_line_out.color->green = 0x0000;
-      prop_line_out.color->blue = 0x0fff;
+      prop_line_out.color->green = 0xffff;
+      prop_line_out.color->blue = 0xfff0;
     }
     else if(process_out->state->s == LTTV_STATE_WAIT_CPU)
     {
@@ -454,6 +457,7 @@ int draw_event_hook(void *hook_data, void *call_data)
     prop_text_in.size = 6;
     prop_text_in.position = OVER;
 
+    g_critical("in state : %s", g_quark_to_string(process_in->state->s));
     /* foreground of text : status of the process */
     if(process_in->state->s == LTTV_STATE_UNNAMED)
     {
@@ -464,8 +468,8 @@ int draw_event_hook(void *hook_data, void *call_data)
     else if(process_in->state->s == LTTV_STATE_WAIT_FORK)
     {
       prop_text_in.foreground->red = 0x0fff;
-      prop_text_in.foreground->green = 0x0000;
-      prop_text_in.foreground->blue = 0x0fff;
+      prop_text_in.foreground->green = 0xffff;
+      prop_text_in.foreground->blue = 0xfff0;
     }
     else if(process_in->state->s == LTTV_STATE_WAIT_CPU)
     {
@@ -551,8 +555,8 @@ int draw_event_hook(void *hook_data, void *call_data)
     else if(process_in->state->s == LTTV_STATE_WAIT_FORK)
     {
       prop_line_in.color->red = 0x0fff;
-      prop_line_in.color->green = 0x0000;
-      prop_line_in.color->blue = 0x0fff;
+      prop_line_in.color->green = 0xffff;
+      prop_line_in.color->blue = 0xfff0;
     }
     else if(process_in->state->s == LTTV_STATE_WAIT_CPU)
     {
@@ -772,8 +776,8 @@ int draw_after_hook(void *hook_data, void *call_data)
     else if(process_out->state->s == LTTV_STATE_WAIT_FORK)
     {
       prop_text_out.foreground->red = 0x0fff;
-      prop_text_out.foreground->green = 0x0000;
-      prop_text_out.foreground->blue = 0x0fff;
+      prop_text_out.foreground->green = 0xffff;
+      prop_text_out.foreground->blue = 0xfff0;
     }
     else if(process_out->state->s == LTTV_STATE_WAIT_CPU)
     {
@@ -892,8 +896,8 @@ int draw_after_hook(void *hook_data, void *call_data)
     else if(process_in->state->s == LTTV_STATE_WAIT_FORK)
     {
       prop_text_in.foreground->red = 0x0fff;
-      prop_text_in.foreground->green = 0x0000;
-      prop_text_in.foreground->blue = 0x0fff;
+      prop_text_in.foreground->green = 0xffff;
+      prop_text_in.foreground->blue = 0xfff0;
     }
     else if(process_in->state->s == LTTV_STATE_WAIT_CPU)
     {
@@ -1341,8 +1345,8 @@ void draw_closure(gpointer key, gpointer value, gpointer user_data)
   else if(process->state->s == LTTV_STATE_WAIT_FORK)
   {
     prop_line.color->red = 0x0fff;
-    prop_line.color->green = 0x0000;
-    prop_line.color->blue = 0x0fff;
+    prop_line.color->green = 0xffff;
+    prop_line.color->blue = 0xfff0;
   }
   else if(process->state->s == LTTV_STATE_WAIT_CPU)
   {
This page took 0.028161 seconds and 4 git commands to generate.