<div dir="ltr"><div><div>If you ever need to run some kind of scripted analysis of a performance profile, it just got a bit easier since we are now exposing the profile to the window object on every <a href="http://perf-html.io">perf-html.io</a> page. In addition you can use the UI to filter down to the part of the profile you are interested, and the globals automatically provides the currently filtered thread and call tree. This includes call tree transformations.<br><br></div><div>As always visit here to start profiling:<a href="https://perf-html.io/"> https://perf-html.io/</a><br></div><br></div>Let us know how this has helped you out, or any additional features request here: <a href="https://github.com/devtools-html/perf.html/issues">https://github.com/devtools-html/perf.html/issues</a><br><br><div><div>Here is the console message:<br><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-family:monospace,monospace">                  __ _     _             _ <br>                 / _| |   | |           | |<br> _ __   ___ _ __| |_| |__ | |_ _ __ ___ | |<br>| '_ \ / _ \ '__|  _| '_ \| __| '_ ` _ \| |<br>| |_) |  __/ |  | |_| | | | |_| | | | | | |<br>| .__/ \___|_|  |_(_)_| |_|\__|_| |_| |_|_|<br>| |                                        <br>|_|                                        <br><br>The following profiler information is available via the console:<br><br>window.profile - The currently loaded profile<br>window.filteredThread - The current filtered thread<br>window.callTree - The call tree of the current filtered thread<br><br>The profile format is document here:<br><a href="https://github.com/devtools-html/perf.html/blob/master/docs/processed-profile-format.md">https://github.com/devtools-html/perf.html/blob/master/docs/processed-profile-format.md</a><br><br>The CallTree class's source code is available here:<br><a href="https://github.com/devtools-html/perf.html/blob/master/src/profile-logic/call-tree.js">https://github.com/devtools-html/perf.html/blob/master/src/profile-logic/call-tree.js</a><br></span></blockquote><br><br></div><div>~Greg Tatum<br></div></div></div>