Skip to content

Commit 82bca17

Browse files
committed
[LogProfiler] Removed GcRoot events logging from start
GcRoots should only be reported/captured during heapshot. We already set callback when heapshot collection starts and unset it when heapshot is finished. Which means after 1st heapshot is taken we don't log them outside heapshot. Hence we shouldn't be logging them from start...
1 parent e51565c commit 82bca17

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

mono/profiler/log.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4728,9 +4728,6 @@ mono_profiler_init_log (const char *desc)
47284728
if (ENABLED (PROFLOG_GC_MOVE_EVENTS))
47294729
mono_profiler_set_gc_moves_callback (handle, gc_moves);
47304730

4731-
if (ENABLED (PROFLOG_GC_ROOT_EVENTS))
4732-
mono_profiler_set_gc_roots_callback (handle, gc_roots);
4733-
47344731
if (ENABLED (PROFLOG_GC_HANDLE_EVENTS)) {
47354732
mono_profiler_set_gc_handle_created_callback (handle, gc_handle_created);
47364733
mono_profiler_set_gc_handle_deleted_callback (handle, gc_handle_deleted);

0 commit comments

Comments
 (0)