projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
keep current process : y position shorter to find
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
modules
/
gui
/
controlflow
/
drawing.c
diff --git
a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c
b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c
index bcda5b22f0a1babaf03af4222393d909819b0c5e..f9fca3e7b428491b11150584a33039052fc325ce 100644
(file)
--- a/
ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c
+++ b/
ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c
@@
-18,6
+18,7
@@
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
+#include <string.h>
#include <lttv/lttv.h>
#include <lttv/tracecontext.h>
#include <lttv/lttv.h>
#include <lttv/tracecontext.h>
@@
-413,9
+414,6
@@
void drawing_data_request_begin(EventsRequest *events_request, LttvTracesetState
g_hash_table_foreach(cfd->process_list->process_hash, set_last_start,
(gpointer)x);
g_hash_table_foreach(cfd->process_list->process_hash, set_last_start,
(gpointer)x);
- cfd->process_list->current_process_info = NULL;
- cfd->process_list->current_hash_data = NULL;
-
}
void drawing_chunk_begin(EventsRequest *events_request, LttvTracesetState *tss)
}
void drawing_chunk_begin(EventsRequest *events_request, LttvTracesetState *tss)
@@
-424,7
+422,12
@@
void drawing_chunk_begin(EventsRequest *events_request, LttvTracesetState *tss)
ControlFlowData *cfd = events_request->viewer_data;
LttvTracesetContext *tsc = LTTV_TRACESET_CONTEXT(tss);
LttTime current_time = lttv_traceset_context_get_current_tfc(tsc)->timestamp;
ControlFlowData *cfd = events_request->viewer_data;
LttvTracesetContext *tsc = LTTV_TRACESET_CONTEXT(tss);
LttTime current_time = lttv_traceset_context_get_current_tfc(tsc)->timestamp;
+ guint num_cpu =
+ ltt_trace_per_cpu_tracefile_number(tss->parent.traces[TRACE_NUMBER]->t);
+ cfd->process_list->current_hash_data = g_new(HashedProcessData*,num_cpu);
+ memset(cfd->process_list->current_hash_data, 0,
+ sizeof(HashedProcessData*)*num_cpu);
//cfd->drawing->last_start = LTT_TIME_MIN(current_time,
// events_request->end_time);
}
//cfd->drawing->last_start = LTT_TIME_MIN(current_time,
// events_request->end_time);
}
This page took
0.023014 seconds
and
4
git commands to generate.