DevTools/OperationInstrument: Difference between revisions

Jump to navigation Jump to search
Line 56: Line 56:
== 2. Telling the DevTools Frontend About the New Markers ==
== 2. Telling the DevTools Frontend About the New Markers ==


To get your new markers displayed in the performance tool's UI, edit the configuration data in '''<code>browser/devtools/performance/modules/global.js</code>'''.
To get your new markers displayed in the performance tool's UI, edit the configuration data in '''<code>browser/devtools/performance/modules/markers.js</code>'''.


Add a property to the '''<code>TIMELINE_BLUEPRINT</code>''' object. The property key should be the <code>const char *</code> literal that you added in step 1 ("Parse HTML" in our example). The new property should be an object with the following properties:
Add a property to the '''<code>TIMELINE_BLUEPRINT</code>''' object. The property key should be the <code>const char *</code> literal that you added in step 1 ("Parse HTML" in our example). The new property should be an object with the following properties:
Confirmed users
125

edits

Navigation menu