X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Fprocesslist.h;h=808e5fab4d4e5656aa2fae5d22a066edec142085;hb=7893f726b92c58d32505219ea5275d138c3ee3ff;hp=1c9331d2765c337eb903506bf0a0d15ed517ce28;hpb=2309386913ad8c4ce16fa35b7ce749ea7845e292;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h index 1c9331d2..808e5fab 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h @@ -49,11 +49,13 @@ typedef struct _ProcessInfo { LttTime birth; guint trace_num; + gint height_cache; + } ProcessInfo; typedef struct _HashedProcessData { - GtkTreeRowReference *row_ref; + GtkTreeIter y_iter; // Access quickly to y pos. // DrawContext *draw_context; /* Information on current drawing */ struct { @@ -76,6 +78,7 @@ struct _ProcessList { GHashTable *process_hash; guint number_of_process; + gint cell_height_cache; }; @@ -99,12 +102,12 @@ int processlist_remove(ProcessList *process_list, guint pid, guint cpu, guint processlist_get_height(ProcessList *process_list); // Returns 0 on success -gint processlist_get_process_pixels(ProcessList *process_list, +__inline gint processlist_get_process_pixels(ProcessList *process_list, guint pid, guint cpu, LttTime *birth, guint trace_num, guint *y, guint *height, HashedProcessData **hashed_process_data); -gint processlist_get_pixels_from_data( ProcessList *process_list, +__inline gint processlist_get_pixels_from_data( ProcessList *process_list, ProcessInfo *process_info, HashedProcessData *hashed_process_data, guint *y,