This directory stores pre-built assets of the Perfetto UI web app, along with some additional files authored by the DevTools team, to support custom styling for the Perfetto UI. We embed this web app in an iFrame on the DevTools Performance page. This allows us to leverage the first-in-class trace viewer for viewing Dart and Flutter timeline traces.
This build output is included with the DevTools app bundle so that we can load the Perfetto UI web app from source at runtime. We do this for the following reasons:
This build output should be updated as needed, for example, if the Perfetto team releases some new features or fixes we want to take advantage of. Outside of ad hoc updates, this output should be refreshed at least once per quarter.
To update the Perfetto build output, run the update_perfetto.sh script located in devtools/tools/. Be sure that all DevTools-authored files under assets/perfetto are not deleted by mistake.