mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: update end-times after process pool is created
These largely get created when processing the load of various document pieces. Wait until the end so that we actually have something to update.
This commit is contained in:
@ -1223,9 +1223,6 @@ sysprof_document_load_worker (GTask *task,
|
||||
if (guessed_end_nsec > self->time_span.begin_nsec)
|
||||
self->time_span.end_nsec = guessed_end_nsec;
|
||||
|
||||
/* Ensure all our process have an exit_time set */
|
||||
sysprof_document_update_process_exit_times (self);
|
||||
|
||||
load_progress (load, .6, _("Discovering file system mounts"));
|
||||
sysprof_document_load_mounts (self);
|
||||
|
||||
@ -1244,6 +1241,9 @@ sysprof_document_load_worker (GTask *task,
|
||||
load_progress (load, .85, _("Processing counters"));
|
||||
sysprof_document_load_counters (self);
|
||||
|
||||
/* Ensure all our process have an exit_time set */
|
||||
sysprof_document_update_process_exit_times (self);
|
||||
|
||||
g_task_return_pointer (task, g_steal_pointer (&self), g_object_unref);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user