Bug 1500692 - Centralize profiling category definition and add infrastructure for subcategories. r=njn

The actual subcategories will be added in later patches, so that there are no
unused categories.

Differential Revision: https://phabricator.services.mozilla.com/D11334
This commit is contained in:
Markus Stange
2019-02-16 17:37:43 +00:00
parent e80c88ac39
commit beff53a46a
45 changed files with 468 additions and 341 deletions

View File

@@ -567,7 +567,7 @@ AutoEntryScript::AutoEntryScript(nsIGlobalObject* aGlobalObject,
#ifdef MOZ_GECKO_PROFILER
,
mAutoProfilerLabel(
"", aReason, js::ProfilingStackFrame::Category::JS,
"", aReason, JS::ProfilingCategoryPair::JS,
uint32_t(js::ProfilingStackFrame::Flags::RELEVANT_FOR_JS))
#endif
{