From 057970b3194443596157a423d4d104ecd2d83d23 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Sun, 15 Dec 2024 16:00:12 +0100 Subject: [PATCH] Try to send the manifest before starting the sampler --- src/Ultra.Sampler/MacOS/MacOSUltraSampler.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Ultra.Sampler/MacOS/MacOSUltraSampler.cs b/src/Ultra.Sampler/MacOS/MacOSUltraSampler.cs index ecc793d..f586efc 100644 --- a/src/Ultra.Sampler/MacOS/MacOSUltraSampler.cs +++ b/src/Ultra.Sampler/MacOS/MacOSUltraSampler.cs @@ -75,6 +75,15 @@ protected override void EnableImpl() { _nextModuleEventIndexToLog = 0; _captureEnabled = true; + // Make sure to always send the manifest before resuming the capture thread + try + { + EventSource.SendCommand(UltraSamplerSource.Log, EventCommand.SendManifest, null); + } + catch + { + // Ignore + } _resumeCaptureThread.Set(); }