Hello platform hackers! [ Operation Instrument ] (htt ps://wiki.mozilla.org/DevTools/OperationInstrument) is a project that aims to add tracing instrumentation to Gecko and provide a holistic view of where time is being spent and why.
Examples of traced operations include: * Style Recalculation * Layout Reflow * Painting * JavaScript R un-to- C ompletion * Etc. The traced operations are displayed in the DevTools Performance panel 's timeline: https://wiki.mozilla.org/File:Timeline-screenshot.png The goal is to have zero gaps between markers, so that we can always tell at a high level what Gecko is doing, and what brought it there. But , the DevTools team can't do it alone. You can help add new instrumentation to the parts of Gecko you're familiar with. If you have an nsDocShell, it can be as easy as using a simple RAII class: `mozilla::AutoTimelineMarker`. There is a quick and easy tutorial with examples here: https://wiki.mozilla.org/DevTools/OperationInstrument#Tutorial:_Instrumenting_New_Operations Additionally, when you are implementing new features, please consider adding instrumentation right off the bat! Please take a look at the blockers of our meta bug, and file new bugs that block it: https://bugzilla.mozilla.org/show_bug.cgi?id=1145271 Thanks, Nick (and the whole DevTools team ) _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform