firefox-devtools / firefox-devtools/profiler

[Locally Stored Profiles] Automatically store the profile locally after receiving it from the addon

Open
#11 2 comments 1 reaction 0 assignees View on GitHub
profile data
Dominant language
TypeScript
Stars
1.5k
Forks
491
Avg merge
3d 46m
Merged PRs (30d)
27

Description

When perf.html is opened from the Gecko Profiler addon, it should take the profile it received, store it in IndexedDB, generate an ID for it, and set the URL to `/local/theGeneratedId/`. And it should support loading the profile from IndexedDB when such a URL is navigated to.

The goal is to survive a browser restart without losing your state, even if you haven't shared the profile publicly.

Some of the problems we'll need to solve as part of this:

* Expiration / quota management
* Wait for symbolication to complete or no?
* How to generate the ID? The web app that stores published profiles generates a hash of the contents, but if we store the profile before we've finished symbolication, then the contents can change; should we keep updating the hash and the URL in that case?

┆Issue is synchronized with this [Jira Task](https://mozilla-hub.atlassian.net/browse/FP-50)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.