mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: add some flags for internal state
This can help us to avoid various work items when processing symbols.
This commit is contained in:
@ -169,7 +169,10 @@ sysprof_callgraph_class_init (SysprofCallgraphClass *klass)
|
||||
object_class->finalize = sysprof_callgraph_finalize;
|
||||
|
||||
everything = _sysprof_symbol_new (g_ref_string_new_intern ("[Everything]"), NULL, NULL, 0, 0);
|
||||
everything->is_everything = TRUE;
|
||||
|
||||
untraceable = _sysprof_symbol_new (g_ref_string_new_intern ("[Unwindable]"), NULL, NULL, 0, 0);
|
||||
everything->is_untraceable = TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@ -489,6 +489,7 @@ sysprof_document_load_processes (SysprofDocument *self)
|
||||
process_info->symbol =
|
||||
_sysprof_symbol_new (sysprof_strings_get (self->strings, wrapped),
|
||||
NULL, NULL, 0, 0);
|
||||
process_info->symbol->is_process = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -39,6 +39,9 @@ struct _SysprofSymbol
|
||||
SysprofAddress end_address;
|
||||
|
||||
guint is_context_switch : 1;
|
||||
guint is_everything : 1;
|
||||
guint is_untraceable : 1;
|
||||
guint is_process : 1;
|
||||
};
|
||||
|
||||
SysprofSymbol *_sysprof_symbol_new (GRefString *name,
|
||||
|
||||
Reference in New Issue
Block a user