* Methods to synchronize process list *
*****************************************************************************/
* Methods to synchronize process list *
*****************************************************************************/
/* Create the Process list */
process_list->list_store = gtk_list_store_new ( N_COLUMNS,
G_TYPE_STRING,
/* Create the Process list */
process_list->list_store = gtk_list_store_new ( N_COLUMNS,
G_TYPE_STRING,
HashedProcessData **pm_hashed_process_data)
{
ProcessInfo *Process_Info = g_new(ProcessInfo, 1);
HashedProcessData *hashed_process_data = g_new(HashedProcessData, 1);
*pm_hashed_process_data = hashed_process_data;
HashedProcessData **pm_hashed_process_data)
{
ProcessInfo *Process_Info = g_new(ProcessInfo, 1);
HashedProcessData *hashed_process_data = g_new(HashedProcessData, 1);
*pm_hashed_process_data = hashed_process_data;
/* Add a new row to the model */
gtk_list_store_append ( process_list->list_store,
/* Add a new row to the model */
gtk_list_store_append ( process_list->list_store,
BIRTH_S_COLUMN, birth->tv_sec,
BIRTH_NS_COLUMN, birth->tv_nsec,
TRACE_COLUMN, trace_num,
BIRTH_S_COLUMN, birth->tv_sec,
BIRTH_NS_COLUMN, birth->tv_nsec,
TRACE_COLUMN, trace_num,
- Process_Info.pid = pid;
- Process_Info.cpu = cpu;
- Process_Info.birth = *birth;
- Process_Info.trace_num = trace_num;
+ process_info.pid = pid;
+ if(pid == 0)
+ process_info.cpu = cpu;
+ else
+ process_info.cpu = 0;
+ process_info.birth = *birth;
+ process_info.trace_num = trace_num;
if(hashed_process_data =
(HashedProcessData*)g_hash_table_lookup(
process_list->process_hash,
if(hashed_process_data =
(HashedProcessData*)g_hash_table_lookup(
process_list->process_hash,
{
iter = hashed_process_data->y_iter;
gtk_list_store_remove (process_list->list_store, &iter);
g_hash_table_remove(process_list->process_hash,
{
iter = hashed_process_data->y_iter;
gtk_list_store_remove (process_list->list_store, &iter);
g_hash_table_remove(process_list->process_hash,
guint pid, guint cpu, LttTime *birth, guint trace_num,
guint *y,
guint *height,
HashedProcessData **pm_hashed_process_data)
{
guint pid, guint cpu, LttTime *birth, guint trace_num,
guint *y,
guint *height,
HashedProcessData **pm_hashed_process_data)
{
- Process_Info.pid = pid;
- Process_Info.cpu = cpu;
- Process_Info.birth = *birth;
- Process_Info.trace_num = trace_num;
+ process_info.pid = pid;
+ if(pid == 0)
+ process_info.cpu = cpu;
+ else
+ process_info.cpu = 0;
+ process_info.birth = *birth;
+ process_info.trace_num = trace_num;
if(hashed_process_data =
(HashedProcessData*)g_hash_table_lookup(
process_list->process_hash,
if(hashed_process_data =
(HashedProcessData*)g_hash_table_lookup(
process_list->process_hash,
&hashed_process_data->y_iter);
path_indices = gtk_tree_path_get_indices (tree_path);
*height = get_cell_height(process_list,
&hashed_process_data->y_iter);
path_indices = gtk_tree_path_get_indices (tree_path);
*height = get_cell_height(process_list,
*y = *height * path_indices[0];
*pm_hashed_process_data = hashed_process_data;
gtk_tree_path_free(tree_path);
*y = *height * path_indices[0];
*pm_hashed_process_data = hashed_process_data;
gtk_tree_path_free(tree_path);
-__inline gint processlist_get_pixels_from_data( ProcessList *process_list,
- ProcessInfo *process_info,
+__inline__ gint processlist_get_pixels_from_data( ProcessList *process_list,
&hashed_process_data->y_iter);
path_indices = gtk_tree_path_get_indices (tree_path);
*height = get_cell_height(process_list,
&hashed_process_data->y_iter);
path_indices = gtk_tree_path_get_indices (tree_path);
*height = get_cell_height(process_list,