From 367f984ec6e159fac76835ccb8cf0d802425f0ae Mon Sep 17 00:00:00 2001 From: Julien Wajsberg Date: Tue, 19 Sep 2023 14:45:56 +0200 Subject: [PATCH] Update the uploading command in the developer documentation --- docs-developer/loading-in-profiles.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs-developer/loading-in-profiles.md b/docs-developer/loading-in-profiles.md index 18e9ec3ca7..bb1ed7fe0f 100644 --- a/docs-developer/loading-in-profiles.md +++ b/docs-developer/loading-in-profiles.md @@ -4,13 +4,14 @@ Profiles can be loaded into the Firefox Profiler from many different sources. ### Online Storage -> `https://profiler.firefox.com/public/{HASH}` +> `https://profiler.firefox.com/public/{TOKEN}` -Profiles can be stored in online data store. The hash is used to retrieve it. This is where profiles go when clicking the "Share..." button. Here is an example bash script to programmatically upload profiles: +Profiles can be stored in online data store. The token is used to retrieve it. This is where profiles go when clicking the "Share..." button. Here is an example bash script to programmatically upload profiles: ```bash uploadprofile() { - gzip -c "$1" | curl 'https://profile-store.appspot.com/compressed-store' --compressed --data-binary @- | awk '{print "Hosted at: https://profiler.firefox.com/public/"$1}' + # decode_jwt_payload.py is in https://raw.githubusercontent.com/firefox-devtools/profiler-server/master/tools/decode_jwt_payload.py + gzip -c "$1" | curl 'https://api.profiler.firefox.com/compressed-store' -X POST -H 'Accept: application/vnd.firefox-profiler+json;version=1.0' --data-binary @- | decode_jwt_payload.py | awk '{print "Hosted at: https://profiler.firefox.com/public/"$1}' } # Execute with the following command: