mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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)
|
||||
{
|
||||
const SysprofCaptureMark *mark = (const SysprofCaptureMark *)tainted;
|
||||
|
||||
Reference in New Issue
Block a user