Bug 1745978 - Add the ability to fetch source code from disk to the Profiler WebChannel's querySymbolicationApi method. r=canaltinova

This updates profiler-get-symbols to the latest version.
The new /source/v1 entry point was implemented in
edb78205d1

Furthermore, this update also picks up a fix for macOS 12 system library symbolication.

Differential Revision: https://phabricator.services.mozilla.com/D133757
This commit is contained in:
Markus Stange 2021-12-17 11:11:48 +00:00
Родитель f96606fb74
Коммит b9622a7b8f
2 изменённых файлов: 24 добавлений и 24 удалений

Просмотреть файл

@ -6,7 +6,7 @@
// THIS FILE IS AUTOGENERATED by wasm-bindgen.
//
// Generated from:
// https://github.com/mstange/profiler-get-symbols/commit/d1500c1e935db352eeb97170459d16a20bcddf08
// https://github.com/mstange/profiler-get-symbols/commit/b933282e82f871ea76b5373f9fc81800e8550b7b
// by following the instructions in that repository's Readme.md
//
@ -152,7 +152,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
return real;
}
function __wbg_adapter_18(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h15e8c750ba83926b(arg0, arg1, addHeapObject(arg2));
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb4e403f935e30c3b(arg0, arg1, addHeapObject(arg2));
}
function handleError(f, args) {
@ -163,7 +163,7 @@ function handleError(f, args) {
}
}
function __wbg_adapter_33(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h4f762673d6342f56(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
wasm.wasm_bindgen__convert__closures__invoke2_mut__h26b8edbd18501052(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}
/**
@ -297,16 +297,18 @@ async function init(input) {
}
const imports = {};
imports.wbg = {};
imports.wbg.__wbg_close_43969dcfc81eee63 = function() { return handleError(function (arg0) {
getObject(arg0).close();
}, arguments) };
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
imports.wbg.__wbg_call_e3c72355d091d5d4 = function() { return handleError(function (arg0, arg1, arg2) {
var ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbindgen_cb_drop = function(arg0) {
const obj = takeObject(arg0).original;
if (obj.cnt-- == 1) {
obj.a = 0;
return true;
}
var ret = false;
return ret;
};
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
var ret = getObject(arg0);
return addHeapObject(ret);
@ -343,6 +345,13 @@ async function init(input) {
var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
imports.wbg.__wbg_call_e3c72355d091d5d4 = function() { return handleError(function (arg0, arg1, arg2) {
var ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_close_43969dcfc81eee63 = function() { return handleError(function (arg0) {
getObject(arg0).close();
}, arguments) };
imports.wbg.__wbg_readFile_1005cc171b90cf75 = function(arg0, arg1, arg2) {
var ret = getObject(arg0).readFile(getStringFromWasm0(arg1, arg2));
return addHeapObject(ret);
@ -351,15 +360,6 @@ async function init(input) {
var ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
return addHeapObject(ret);
};
imports.wbg.__wbindgen_cb_drop = function(arg0) {
const obj = takeObject(arg0).original;
if (obj.cnt-- == 1) {
obj.a = 0;
return true;
}
var ret = false;
return ret;
};
imports.wbg.__wbg_size_e3a695992634c2c1 = function() { return handleError(function (arg0) {
var ret = getObject(arg0).size;
return ret;
@ -432,8 +432,8 @@ async function init(input) {
var ret = Promise.resolve(getObject(arg0));
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper1667 = function(arg0, arg1, arg2) {
var ret = makeMutClosure(arg0, arg1, 88, __wbg_adapter_18);
imports.wbg.__wbindgen_closure_wrapper1745 = function(arg0, arg1, arg2) {
var ret = makeMutClosure(arg0, arg1, 87, __wbg_adapter_18);
return addHeapObject(ret);
};

Просмотреть файл

@ -49,11 +49,11 @@ const global = this;
// The sha384 sum can be computed with the following command (tested on macOS):
// shasum -b -a 384 profiler_get_symbols_wasm_bg.wasm | awk '{ print $1 }' | xxd -r -p | base64
// Generated from https://github.com/mstange/profiler-get-symbols/commit/d1500c1e935db352eeb97170459d16a20bcddf08
// Generated from https://github.com/mstange/profiler-get-symbols/commit/b933282e82f871ea76b5373f9fc81800e8550b7b
const WASM_MODULE_URL =
"https://storage.googleapis.com/firefox-profiler-get-symbols/d1500c1e935db352eeb97170459d16a20bcddf08.wasm";
"https://storage.googleapis.com/firefox-profiler-get-symbols/b933282e82f871ea76b5373f9fc81800e8550b7b.wasm";
const WASM_MODULE_INTEGRITY =
"sha384-x3hW5m/hfzdkq9U7/xU8y9EP4+8bTQ3OtpUY+yG3aPDPpSHef+exFdcDIcba4BYz";
"sha384-WeRBd3mn0rbs+/DX4NzsNc77ZhZOPuRTPZR9y10xrvQdUY6Dm0o205EDz3GyYSPv";
const EXPIRY_TIME_IN_MS = 5 * 60 * 1000; // 5 minutes