mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Bug 1461056 - Remove the "remoteBreakpad" symbol rule, because it's no longer needed. r=dthayer
MozReview-Commit-ID: 6c2hWCtZ0UH --HG-- extra : rebase_source : 36870f7f33172b0b3e0584604d8556eeb36cfa35
This commit is contained in:
parent
1c99762628
commit
47dfb09977
@ -66,9 +66,9 @@ pref("extensions.startupScanScopes", 0);
|
||||
pref("extensions.geckoProfiler.symbols.url", "http://symbols.mozilla.org/");
|
||||
pref("extensions.geckoProfiler.acceptedExtensionIds", "geckoprofiler@mozilla.com,quantum-foxfooding@mozilla.com");
|
||||
#if defined(XP_LINUX) || defined (XP_MACOSX)
|
||||
pref("extensions.geckoProfiler.getSymbolRules", "localBreakpad,remoteBreakpad,nm");
|
||||
pref("extensions.geckoProfiler.getSymbolRules", "localBreakpad,nm");
|
||||
#else // defined(XP_WIN)
|
||||
pref("extensions.geckoProfiler.getSymbolRules", "localBreakpad,remoteBreakpad,dump_syms.exe");
|
||||
pref("extensions.geckoProfiler.getSymbolRules", "localBreakpad,dump_syms.exe");
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -7,16 +7,6 @@
|
||||
importScripts("resource://gre/modules/osfile.jsm");
|
||||
importScripts("resource:///modules/ParseSymbols.jsm");
|
||||
|
||||
async function fetchSymbolFile(url) {
|
||||
const response = await fetch(url);
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(`got error status ${response.status}`);
|
||||
}
|
||||
|
||||
return response.text();
|
||||
}
|
||||
|
||||
function parse(text) {
|
||||
const syms = new Map();
|
||||
|
||||
@ -45,8 +35,6 @@ onmessage = async e => {
|
||||
let text;
|
||||
if (e.data.filepath) {
|
||||
text = await OS.File.read(e.data.filepath, {encoding: "utf-8"});
|
||||
} else if (e.data.url) {
|
||||
text = await fetchSymbolFile(e.data.url);
|
||||
} else if (e.data.textBuffer) {
|
||||
text = (new TextDecoder()).decode(e.data.textBuffer);
|
||||
}
|
||||
|
@ -400,15 +400,13 @@ this.geckoProfiler = class extends ExtensionAPI {
|
||||
|
||||
const cachedLibInfo = symbolCache.get(urlForSymFile(debugName, breakpadId));
|
||||
|
||||
const symbolRules = Services.prefs.getCharPref(PREF_GET_SYMBOL_RULES, "localBreakpad,remoteBreakpad");
|
||||
const symbolRules = Services.prefs.getCharPref(PREF_GET_SYMBOL_RULES, "localBreakpad");
|
||||
const haveAbsolutePath = cachedLibInfo && OS.Path.split(cachedLibInfo.path).absolute;
|
||||
|
||||
// We have multiple options for obtaining symbol information for the given
|
||||
// binary.
|
||||
// "localBreakpad" - Use existing symbol dumps stored in the object directory of a local
|
||||
// Firefox build, generated using `mach buildsymbols` [requires path]
|
||||
// "remoteBreakpad" - Use symbol dumps from the Mozilla symbol server [only requires
|
||||
// debugName + breakpadId]
|
||||
// "nm" - Use the command line tool `nm` [linux/mac only, requires path]
|
||||
// "dump_syms.exe" - Use the tool dump_syms.exe from the object directory [Windows
|
||||
// only, requires path]
|
||||
@ -427,9 +425,6 @@ this.geckoProfiler = class extends ExtensionAPI {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "remoteBreakpad":
|
||||
const url = urlForSymFile(debugName, breakpadId);
|
||||
return await parseSym({url});
|
||||
case "nm":
|
||||
if (haveAbsolutePath) {
|
||||
const {path, arch} = cachedLibInfo;
|
||||
@ -461,8 +456,6 @@ this.geckoProfiler = class extends ExtensionAPI {
|
||||
// we will try the next one.
|
||||
// "localBreakpad" will fail if this is not a local build that's running from the object
|
||||
// directory or if the user hasn't run `mach buildsymbols` on it.
|
||||
// "remoteBreakpad" will fail if this is not an official mozilla build (e.g. Nightly) or a
|
||||
// known system library.
|
||||
// "nm" will fail if `nm` is not available.
|
||||
// "dump_syms.exe" will fail if this is not a local build that's running from the object
|
||||
// directory, or if dump_syms.exe doesn't exist in the object directory, or if
|
||||
|
Loading…
Reference in New Issue
Block a user