mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: add callgraph flag to merge similar processes
This is the backing implementation to allow for merging multiple processes which have identical comm[] fields.
This commit is contained in:
@ -2106,7 +2106,8 @@ sysprof_document_callgraph_finish (SysprofDocument *self,
|
||||
|
||||
SysprofSymbol *
|
||||
_sysprof_document_process_symbol (SysprofDocument *self,
|
||||
int pid)
|
||||
int pid,
|
||||
gboolean want_shared)
|
||||
{
|
||||
SysprofProcessInfo *info;
|
||||
|
||||
@ -2120,6 +2121,9 @@ _sysprof_document_process_symbol (SysprofDocument *self,
|
||||
if (info == NULL)
|
||||
return self->missing_process;
|
||||
|
||||
if (want_shared && info->shared_symbol)
|
||||
return info->shared_symbol;
|
||||
|
||||
if (info->symbol)
|
||||
return info->symbol;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user