DevTools/OperationInstrument: Difference between revisions

m
(Update documentation to reflect the new API)
Line 40: Line 40:


===== Using ''<code>mozilla::AutoGlobalTimelineMarker</code>'' =====
===== Using ''<code>mozilla::AutoGlobalTimelineMarker</code>'' =====
Similar to the previous RAII class, but doesn't expect a specific docshell, and the marker will be visible in all timeline consumers. This is useful for generic operations that don't involve a particular dochsell, or where a docshell isn't accessible. May also be used on the main thread only.
Similar to the previous RAII class, but doesn't expect a specific docshell, and the marker will be visible in all timeline consumers. This is useful for generic operations that don't involve a particular dochsell, or where a docshell isn't accessible. May also only be used on the main thread.


Example:
Example:
Confirmed users
29

edits