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:
Christian Hergert
2023-07-10 13:31:13 -07:00
parent 32bfc4eb26
commit f003482afb

View File

@ -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);
}