Skip to content

Commit d6d527f

Browse files
authored
Fix EventPipe sample profiler resolution on Windows. (#58997)
1 parent 61513a7 commit d6d527f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/native/eventpipe/ep-sample-profiler.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,7 @@ sample_profiler_enable (void)
198198

199199
ep_requires_lock_held ();
200200

201-
const bool result = sample_profiler_load_dependecies ();
202-
EP_ASSERT (result);
203-
204-
if (result && !sample_profiler_load_profiling_enabled ()) {
201+
if (!sample_profiler_load_profiling_enabled ()) {
205202
sample_profiler_store_profiling_enabled (true);
206203

207204
EP_ASSERT (!ep_rt_wait_event_is_valid (&_thread_shutdown_event));
@@ -273,6 +270,8 @@ ep_sample_profiler_enable (void)
273270
if (!ep_event_is_enabled (_thread_time_event))
274271
return;
275272

273+
sample_profiler_load_dependecies ();
274+
276275
if (_can_start_sampling)
277276
sample_profiler_enable ();
278277

0 commit comments

Comments
 (0)