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:
Christian Hergert
2023-06-12 14:15:08 -07:00
parent abdd546197
commit f701e028b4
3 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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;
}
}
}

View File

@ -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,