mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 08:00:53 +00:00
libsysprof-analyze: record exit time of processes
This will allow us to treat them as a duration in a chart.
This commit is contained in:
@ -1069,6 +1069,13 @@ sysprof_document_load_worker (GTask *task,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (tainted->type == SYSPROF_CAPTURE_FRAME_EXIT)
|
||||||
|
{
|
||||||
|
SysprofProcessInfo *info = g_hash_table_lookup (self->pid_to_process_info, GINT_TO_POINTER (pid));
|
||||||
|
|
||||||
|
if (info != NULL)
|
||||||
|
info->exit_time = t;
|
||||||
|
}
|
||||||
else if (tainted->type == SYSPROF_CAPTURE_FRAME_MARK)
|
else if (tainted->type == SYSPROF_CAPTURE_FRAME_MARK)
|
||||||
{
|
{
|
||||||
const SysprofCaptureMark *mark = (const SysprofCaptureMark *)tainted;
|
const SysprofCaptureMark *mark = (const SysprofCaptureMark *)tainted;
|
||||||
|
|||||||
@ -34,6 +34,7 @@ typedef struct _SysprofProcessInfo
|
|||||||
SysprofSymbol *fallback_symbol;
|
SysprofSymbol *fallback_symbol;
|
||||||
SysprofSymbol *symbol;
|
SysprofSymbol *symbol;
|
||||||
int pid;
|
int pid;
|
||||||
|
gint64 exit_time;
|
||||||
} SysprofProcessInfo;
|
} SysprofProcessInfo;
|
||||||
|
|
||||||
SysprofProcessInfo *sysprof_process_info_new (SysprofMountNamespace *mount_namespace,
|
SysprofProcessInfo *sysprof_process_info_new (SysprofMountNamespace *mount_namespace,
|
||||||
|
|||||||
Reference in New Issue
Block a user