X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Fcallbacks.c;h=e121714437dd6fe936640b8109ea7004103a5bf3;hb=84ddf5c933843f7b313a6dc4347ea6b5fb834557;hp=c7d1cc17a5e907d9cb7a1c865c176c4b79e082fc;hpb=b052368a0d53ff62ed9110fbafdb857a2b034ca8;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c index c7d1cc17..e1217144 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c @@ -1384,9 +1384,10 @@ static void lttvwindow_add_trace(Tab *tab, LttvTrace *trace_v) { LttvTraceset *traceset = tab->traceset_info->traceset; guint i; + guint num_traces = lttv_traceset_number(traceset); //Verify if trace is already present. - for(i=0; ilower; upper = adjust->upper; ratio = (value - lower) / (upper - lower); - g_critical("lower %lu, upper %lu, value %lu, ratio %lu", lower, upper, value, ratio); + g_info("lower %lu, upper %lu, value %lu, ratio %lu", lower, upper, value, ratio); //time = ltt_time_sub(time_span->end_time, time_span->start_time); //time = ltt_time_mul(time, (float)ratio); @@ -3624,9 +3626,13 @@ void construct_main_window(MainWindow * parent) new_tab = create_tab(new_m_window, parent_tab, notebook, "Traceset"); } else { new_tab = create_tab(new_m_window, NULL, notebook, "Traceset"); + /* First window, use command line trace */ if(g_init_trace != NULL){ lttvwindow_add_trace(new_tab, g_init_trace); + + LttvTraceset *traceset = new_tab->traceset_info->traceset; + SetTraceset(new_tab, traceset); } } @@ -3702,12 +3708,13 @@ Tab* create_tab(MainWindow * mw, Tab *copy_tab, tab->traceset_info->traceset = lttv_traceset_new(); } -//FIXME : this is g_debug level +#ifdef DEBUG lttv_attribute_write_xml( lttv_traceset_attribute(tab->traceset_info->traceset), stdout, 0, 4); fflush(stdout); +#endif //DEBUG //FIXME copy not implemented in lower level