mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-30 14:17:36 -10:00
ProfilerStackFrameRAII and ProfilerStackFrameDynamicRAII are very similar; the latter lets a dynamic string be specified as well (and lacks the MOZ_GUARD_OBJECT stuff, for no good reason). This patch does the following. - Removes ProfilerStackFrameDynamicRAII, and adds a dynamic string to ProfilerStackFrameRAII. It also reorders the constructor's arguments to match the field ordering of ProfileEntry. There aren't many usage sites so these changes don't affect many places. - With that done, there is only a single callsite for each of profiler_call_enter() and profiler_call_exit(), so the patch also inlines and removes them.