gecko-dev/tools/profiler/core
Gerald Squelart b22230bc7d Bug 1693502 - Check GetObserverService() instead of gXPCOMShuttingDown to handle pre/failed-XPCOM calls - r=florian
In XREMain(), if something went wrong between `PROFILER_INIT` and `MakeUnique<ScopedXPCOMStartup>()`,
- XPCOM would not be initialized -- Meaning `ExtensionPolicyService::GetSingleton()` would assert when not finding the Observer Service,
- But `gXPCOMShuttingDown` would still be false.
So `StreamMetaJSCustomObject` (invoked by `profiler_shutdown`, called by the `PROFILER_INIT` object destructor at the end of `XREMain()`) would still attempt to use `ExtensionPolicyService::GetSingleton()`.

In this patch, `StreamMetaJSCustomObject` now checks that the observer service exists, instead of only testing `!gXPCOMShuttingDown`. This should handle all situations where `ExtensionPolicyService::GetSingleton()` could assert, not just during normal shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D106061
2021-02-23 09:01:37 +00:00
..
vtune
EHABIStackWalk.cpp
EHABIStackWalk.h
memory_hooks.cpp Bug 1691092 - add PROFILER category to make profiler overhead very visible, r=gerald. 2021-02-16 19:04:02 +00:00
memory_hooks.h Bug 1675409 - Migrated NativeAllocationMarkerPayload to Markers 2.0 API - r=gregtatum 2020-11-18 21:52:07 +00:00
PageInformation.cpp Bug 1657033 - Use Span<const char> in JSONWriter - r=froydnj 2020-09-14 02:33:20 +00:00
PageInformation.h
platform-linux-android.cpp Bug 1685938 - Keep CPU measurements and their timestamp within 8*median duration - r=canaltinova 2021-01-19 02:55:35 +00:00
platform-macos.cpp Bug 1691121 - Use a more modern way to obtain the thread ID on macOS. r=gerald 2021-02-09 22:39:19 +00:00
platform-win32.cpp Bug 1685938 - Keep CPU measurements and their timestamp within 8*median duration - r=canaltinova 2021-01-19 02:55:35 +00:00
platform.cpp Bug 1693502 - Check GetObserverService() instead of gXPCOMShuttingDown to handle pre/failed-XPCOM calls - r=florian 2021-02-23 09:01:37 +00:00
platform.h Bug 1685938 - Keep CPU measurements and their timestamp within 8*median duration - r=canaltinova 2021-01-19 02:55:35 +00:00
PlatformMacros.h
ProfileBuffer.cpp Bug 1685938 - Precompute sample timestamps as milliseconds in sampler loop - r=canaltinova 2021-01-19 02:54:15 +00:00
ProfileBuffer.h Bug 1691504 - ProfileBufferCollector now provides the main profiler buffer's range start - r=canaltinova 2021-02-09 12:21:32 +00:00
ProfileBufferEntry.cpp Bug 1685938 - Precompute sample timestamps as milliseconds in sampler loop - r=canaltinova 2021-01-19 02:54:15 +00:00
ProfileBufferEntry.h Bug 1329600 - Scaffolding to output CPU measurements in samples - r=canaltinova 2021-01-04 07:19:16 +00:00
ProfiledThreadData.cpp Bug 1329600 - Scaffolding to output CPU measurements in samples - r=canaltinova 2021-01-04 07:19:16 +00:00
ProfiledThreadData.h Bug 1676361 - Clean up profiler includes. r=gerald 2020-11-23 16:09:13 +00:00
ProfilerBacktrace.cpp Bug 1672310 - Output marker backtraces from other threads - r=gregtatum 2020-10-27 03:16:12 +00:00
ProfilerBacktrace.h Bug 1672310 - Output marker backtraces from other threads - r=gregtatum 2020-10-27 03:16:12 +00:00
ProfilerCodeAddressService.cpp
ProfilerMarkers.cpp Bug 1679763 - Explicitly instantiate often-used profiler templates. r=gerald 2020-12-04 14:21:57 +00:00
RegisteredThread.cpp Bug 1676361 - Clean up profiler includes. r=gerald 2020-11-23 16:09:13 +00:00
RegisteredThread.h Bug 1676361 - Clean up profiler includes. r=gerald 2020-11-23 16:09:13 +00:00
shared-libraries-linux.cc Bug 1676361 - Clean up profiler includes. r=gerald 2020-11-23 16:09:13 +00:00
shared-libraries-macos.cc Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi 2020-09-23 15:17:15 +00:00
shared-libraries-win32.cc Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi 2020-09-23 15:17:15 +00:00
ThreadInfo.h
VTuneProfiler.cpp Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
VTuneProfiler.h