Bug 1462784 - Add a DOM category and use it for the WebIDL binding stack labels. r=njn
☠☠ backed out by 66f87c551f18 ☠ ☠
authorMarkus Stange <mstange@themasta.com>
Fri, 18 May 2018 17:49:55 -0400
changeset 475248 0663d1a6d2da10a008f47aa44cce1605b0fb6b8f
parent 475247 106967fc29d2671aaa498d06964a18ac2c8775bd
child 475249 e09c3885317283d44d08ff6d2bdb01bd4aa3441d
push id9374
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:43:20 +0000
treeherdermozilla-beta@160e085dfb0b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn
bugs1462784
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1462784 - Add a DOM category and use it for the WebIDL binding stack labels. r=njn MozReview-Commit-ID: AevGMqeBvXO
dom/bindings/Codegen.py
js/public/ProfilingStack.h
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -1574,17 +1574,17 @@ class CGAbstractMethod(CGThing):
             decorators.append('static')
         decorators.append(self.returnType)
         maybeNewline = " " if self.inline else "\n"
         return ' '.join(decorators) + maybeNewline
 
     def _auto_profiler_label(self):
         profiler_label_and_jscontext = self.profiler_label_and_jscontext()
         if profiler_label_and_jscontext:
-            return 'AUTO_PROFILER_LABEL_FAST("%s", OTHER, %s);' % profiler_label_and_jscontext
+            return 'AUTO_PROFILER_LABEL_FAST("%s", DOM, %s);' % profiler_label_and_jscontext
         return None
 
     def declare(self):
         if self.inline:
             return self._define(True)
         return "%s%s%s(%s);\n" % (self._template(), self._decorators(), self.name, self._argstring(True))
 
     def indent_body(self, body):
--- a/js/public/ProfilingStack.h
+++ b/js/public/ProfilingStack.h
@@ -191,16 +191,17 @@ class ProfilingStackFrame
     // Keep these in sync with devtools/client/performance/modules/categories.js
     enum class Category : uint32_t {
         OTHER,
         LAYOUT,
         JS,
         GCCC,
         NETWORK,
         GRAPHICS,
+        DOM,
         STORAGE,
 
         FIRST    = OTHER,
         LAST     = STORAGE,
     };
 
     static_assert(uint32_t(Category::LAST) <= (UINT32_MAX >> uint32_t(Kind::KIND_BITCOUNT)),
                   "Too many categories to fit into u32 with two bits reserved for the kind");