Skip to content

Commit 7e5e771

Browse files
author
Gregory LEOCADIE
committed
No need to deactivate perf sample colletion
When collecting events with gconly, gccollectonly and gcwithheap flags, there is no need to disable the perf cpu samples collection. If you don't want to get the cpu sample, use -noperf on the command-line
1 parent 9b5b7a6 commit 7e5e771

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/perfcollect/perfcollect

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,21 +1438,18 @@ SetupLTTngSession()
14381438
RunSilent "$lttngcmd enable-event --userspace --tracepoint DotNETRuntime:EventSource"
14391439
elif [ "$gcCollectOnly" == "1" ]
14401440
then
1441-
usePerf=0
14421441
EnableLTTngEvents ${DotNETRuntime_GCKeyword_GCCollectOnly[@]}
14431442
EnableLTTngEvents ${DotNETRuntimePrivate_GCPrivateKeyword_GCCollectOnly[@]}
14441443
EnableLTTngEvents ${DotNETRuntime_ExceptionKeyword[@]}
14451444
elif [ "$gcOnly" == "1" ]
14461445
then
1447-
usePerf=0
14481446
EnableLTTngEvents ${DotNETRuntime_GCKeyword[@]}
14491447
EnableLTTngEvents ${DotNETRuntimePrivate_GCPrivateKeyword[@]}
14501448
EnableLTTngEvents ${DotNETRuntime_JitKeyword[@]}
14511449
EnableLTTngEvents ${DotNETRuntime_LoaderKeyword[@]}
14521450
EnableLTTngEvents ${DotNETRuntime_ExceptionKeyword[@]}
14531451
elif [ "$gcWithHeap" == "1" ]
14541452
then
1455-
usePerf=0
14561453
EnableLTTngEvents ${DotNETRuntime_GCKeyword[@]}
14571454
EnableLTTngEvents ${DotNETRuntime_GCHeapSurvivalAndMovementKeyword[@]}
14581455
else

0 commit comments

Comments
 (0)