LttvTraceContext *tc;
LttTrace * trace;
+ Time_Span->startTime.tv_sec = 0;
+ Time_Span->startTime.tv_nsec = 0;
+ Time_Span->endTime.tv_sec = 0;
+ Time_Span->endTime.tv_nsec = 0;
+
for(i=0; i<numTraces;i++){
tc = self->traces[i];
trace = tc->t;
EventViewerData *event_viewer_data = (EventViewerData*) hook_data;
LttvTracesetContext * tsc = get_traceset_context(event_viewer_data->mw);
+ if(event_viewer_data->raw_trace_data_queue_tmp->length == 0 &&
+ event_viewer_data->raw_trace_data_queue->length == 0){
+ event_viewer_data->shown = FALSE;
+ return FALSE;
+ }
+
if(event_viewer_data->shown == FALSE){
event_viewer_data->shown = TRUE;
update_raw_data_array(event_viewer_data,
int i, j;
LttTime t;
+ if(!event_viewer_data->raw_trace_data_queue->head) return FALSE;
+
if(event_viewer_data->current_time_updated ){
event_viewer_data->current_time_updated = FALSE;
return FALSE;
g_object_unref(mw_data->current_tab->traceset_info->traceset_context);
}
lttv_traceset_remove(traceset, i);
- lttv_trace_destroy(trace_v);
+ if(!lttv_trace_get_ref_number(trace_v))
+ lttv_trace_destroy(trace_v);
mw_data->current_tab->traceset_info->traceset_context =
g_object_new(LTTV_TRACESET_STATS_TYPE, NULL);
lttv_context_init(
traceset_info->traceset_context),traceset);
//update current tab
update_traceset(mw_data);
- redraw_viewer(mw_data, &(mw_data->current_tab->time_window));
- set_current_time(mw_data,&(mw_data->current_tab->current_time));
+ if(nb_trace > 1){
+ redraw_viewer(mw_data, &(mw_data->current_tab->time_window));
+ set_current_time(mw_data,&(mw_data->current_tab->current_time));
+ }else{
+ if(mw_data->current_tab){
+ while(mw_data->current_tab->multi_vpaned->num_children){
+ gtk_multi_vpaned_widget_delete(mw_data->current_tab->multi_vpaned);
+ }
+ }
+ }
}
break;
}
if(tscs->stats == NULL) return;
+ ts = tscs->parent.parent.ts;
+ nb = lttv_traceset_number(ts);
+ if(nb == 0)return;
+
gtk_tree_store_append (store, &iter, NULL);
gtk_tree_store_set (store, &iter,
NAME_COLUMN, "Traceset statistics",
show_tree(statistic_viewer_data, tscs->stats, &iter);
//show stats for all traces
- ts = tscs->parent.parent.ts;
- nb = lttv_traceset_number(ts);
-
for(i = 0 ; i < nb ; i++) {
tcs = (LttvTraceStats *)(LTTV_TRACESET_CONTEXT(tscs)->traces[i]);
desc = ltt_trace_system_description(tcs->parent.parent.t);