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),
//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,
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)
{
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->";
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)
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)
{
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)
{
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)
{
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)
{
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)
{
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)
{
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)
{