mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 10:27:03 +00:00

profiler_get_gatherer() exposes ProfileGatherer to the outside world in a way that makes future changes difficult. This patch: - Removes ProfileGatherer.h from the list of headers exported from the profiler. - Removes nsIProfiler.profileGatherer and nsProfiler::GetProfileGatherer(). - Replaces profiler_get_gatherer() with three new functions that provide minimal but sufficient access to ProfileGatherer: profiler_will_gather_OOP_profile(), profiler_gathered_OOP_profile(), and profiler_OOP_exit_profile(). These functions provide access to the ProfileGatherer in a similar fashion to the pre-existing functions profiler_get_profile_jsobject_async() and profiler_save_profile_to_file_async() This significantly reduces the size of the profiler's API surface. --HG-- rename : tools/profiler/public/ProfileGatherer.h => tools/profiler/gecko/ProfileGatherer.h extra : rebase_source : d8e06a1133d4098c3a214858d3ff2c4bdcd9f1f2