libsysprof-profile: ensure instruments finish recording

They may still be doing operations that need to complete before we can
move on to the augmentation phase.
This commit is contained in:
Christian Hergert
2023-06-06 15:35:43 -07:00
parent f1826bfc86
commit b38850f27d

View File

@ -162,6 +162,12 @@ stop_recording:
*/
g_cancellable_cancel (cancellable);
/* But we must still wait for instruments to respond to
* the cancellation and clean up before we can move onto
* the augmentation phase.
*/
dex_await (dex_ref (record), NULL);
/* Let instruments augment the capture. Some instruments may include
* extra information about the capture such as symbol names and their
* address ranges per-process.