Open Bug 1812025 Opened 2 years ago Updated 2 years ago

The java threads are sampled even when the nostacksampling feature is used to reduce overhead

Categories

(Core :: Gecko Profiler, defect, P2)

defect

Tracking

()

People

(Reporter: florian, Unassigned)

Details

Severity: -- → S3
Priority: -- → P2

This is where we start the java profiler: https://searchfox.org/mozilla-central/rev/cf3af6bb6657278880f8baf38435eeb8f2d5d86c/tools/profiler/core/platform.cpp#5821-5843
which calls this function on the Java side:
https://searchfox.org/mozilla-central/rev/cf3af6bb6657278880f8baf38435eeb8f2d5d86c/mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoJavaSampler.java#569-570
We should pass the ProfilerFeature::HasNoStackSampling(features) there and start the sampler depending on that.

Note that even though name of the class says GeckoJavaSampler it's also used to start the marker collection (welp). That's why it's not enough to not call that function, we should handle it inside the java side instead.

You need to log in before you can comment on or make changes to this bug.