commit | 3552aaf4db47fca21dc82547e368ce24005fb2c7 | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Tue Jan 14 20:20:52 2020 +0000 |
committer | Primiano Tucci <primiano@google.com> | Tue Jan 14 20:20:52 2020 +0000 |
tree | 4de14d731656a83eb6044a49c0260d947997f3d2 | |
parent | eac62c294ee1c23bc76059efaf8e16859ed58866 [diff] |
ui: add offline support via ServiceWorker Design doc: go/perfetto-offline - Reshuffle a bit the ui build files and introduce a step that creates a resource integrity map (i.e. file_name.css -> hash) for all dist/ resources known by the build system - Add a service worker script that serves files from the cache and notifies the user when a new version is available. Good: loading the UI is blazing fast (after the 1st time) because it's always served by the service worker cache. updates are checked by the browser in the background. Bad: every time a new version is released, on the very first load after the update, every user will see the old version immediately followed by this: https://screenshot.googleplex.com/nbrcoFKEuPE.png The alternative (fetch network first) is way more error-prone. Bug: 147015767 Change-Id: I29eafba62c1ce46ceddaa6a98674389628186ae5
Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.
See www.perfetto.dev for docs.
See /docs/contributing.md for instructions.
The source-of-truth repo is Android's Gerrit. The GitHub repo is a read-only mirror.
You can reach us on our Discord channel. If you prefer using IRC we have an experimental Discord <> IRC bridge synced with #perfetto-dev
on Freenode.