mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-21 02:35:21 +00:00
56631f2ced
There were many inconsistent ways to retrieve process/thread ids in the profiler. Now we have only one platform-dependent implementation each: profiler_current_process_id() and profiler_current_thread_id(). Note that this removes the need for the small `class Thread` in platform.h. However memory_hooks.cpp still needs to be built non-unified, because of the required order of #includes (replace_malloc.h before replace_malloc_bridge.h), which could be disturbed by other cpp's. Differential Revision: https://phabricator.services.mozilla.com/D29977 --HG-- extra : moz-landing-system : lando