Confirmed users
125
edits
(→2. Telling the DevTools Frontend About the New Markers: add suggested reviewers) |
|||
| 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/ | 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>'''. | ||
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: | ||