mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-analyze: ensure exit-time is >= spawn time
This commit is contained in:
@ -177,10 +177,15 @@ _sysprof_document_process_set_info (SysprofDocumentProcess *self,
|
|||||||
gint64
|
gint64
|
||||||
sysprof_document_process_get_exit_time (SysprofDocumentProcess *self)
|
sysprof_document_process_get_exit_time (SysprofDocumentProcess *self)
|
||||||
{
|
{
|
||||||
|
gint64 exit_time = 0;
|
||||||
|
gint64 t;
|
||||||
|
|
||||||
g_return_val_if_fail (SYSPROF_IS_DOCUMENT_PROCESS (self), 0);
|
g_return_val_if_fail (SYSPROF_IS_DOCUMENT_PROCESS (self), 0);
|
||||||
|
|
||||||
if (self->process_info != NULL)
|
if (self->process_info != NULL)
|
||||||
return self->process_info->exit_time;
|
exit_time = self->process_info->exit_time;
|
||||||
|
|
||||||
return 0;
|
t = sysprof_document_frame_get_time (SYSPROF_DOCUMENT_FRAME (self));
|
||||||
|
|
||||||
|
return MAX (t, exit_time);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user