google-chromegoogle-chrome-devtools

Adding marks to Chrome's Timeline tool?


Sometimes, it's difficult to tell when a piece of code starts and when it ends. Is it possible to add markers to Chrome's Timeline tool?


Solution

  • Use console.timeStamp(markName). See https://developers.google.com/web/tools/chrome-devtools/debug/console/track-executions#marking-the-timeline for reference.