We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61513a7 commit d6d527fCopy full SHA for d6d527f
src/native/eventpipe/ep-sample-profiler.c
@@ -198,10 +198,7 @@ sample_profiler_enable (void)
198
199
ep_requires_lock_held ();
200
201
- const bool result = sample_profiler_load_dependecies ();
202
- EP_ASSERT (result);
203
-
204
- if (result && !sample_profiler_load_profiling_enabled ()) {
+ if (!sample_profiler_load_profiling_enabled ()) {
205
sample_profiler_store_profiling_enabled (true);
206
207
EP_ASSERT (!ep_rt_wait_event_is_valid (&_thread_shutdown_event));
@@ -273,6 +270,8 @@ ep_sample_profiler_enable (void)
273
270
if (!ep_event_is_enabled (_thread_time_event))
274
271
return;
275
272
+ sample_profiler_load_dependecies ();
+
276
if (_can_start_sampling)
277
sample_profiler_enable ();
278
0 commit comments