gecko-dev/tools/profiler/public
Gerald Squelart fc29f171a6 Bug 1727877 - Only allocate JS frame buffer when thread is being profiled - r=canaltinova
The buffer was previously allocated as soon as a JSContext was present, meaning that some memory was used even when the profiler was not running, which is the case most of the time for most users.
This saves some memory, at the cost of having to lock the per-thread ThreadRegistration data when sampling a thread with a JSContext. This should have low contention risk, because it's mostly used when sampling on the thread, while the periodic sampler uses its own buffer so it doesn't need to lock the per-thread data.

Differential Revision: https://phabricator.services.mozilla.com/D123910
2021-09-01 00:38:10 +00:00
..
ChildProfilerController.h
GeckoProfiler.h
GeckoProfilerReporter.h
GeckoTraceEvent.h
MicroGeckoProfiler.h
ProfileBufferEntrySerializationGeckoExtensions.h
ProfileJSONWriter.h
ProfilerBindings.h
ProfilerChild.h
ProfilerCodeAddressService.h
ProfilerCounts.h
ProfilerLabels.h
ProfilerMarkerTypes.h
ProfilerMarkers.h
ProfilerMarkersDetail.h
ProfilerMarkersPrerequisites.h
ProfilerParent.h
ProfilerState.h
ProfilerThreadPlatformData.h
ProfilerThreadRegistration.h
ProfilerThreadRegistrationData.h Bug 1727877 - Only allocate JS frame buffer when thread is being profiled - r=canaltinova 2021-09-01 00:38:10 +00:00
ProfilerThreadRegistrationInfo.h
ProfilerThreadRegistry.h
ProfilerThreadState.h
ProfilerUtils.h
shared-libraries.h