michael@0: "use strict"; michael@0: michael@0: const Cu = Components.utils; michael@0: const require = Cu.import("resource://gre/modules/devtools/Loader.jsm", {}).devtools.require; michael@0: const { L10N_BUNDLE } = require("devtools/profiler/consts"); michael@0: michael@0: Cu.import("resource:///modules/devtools/ViewHelpers.jsm"); michael@0: var L10N = new ViewHelpers.L10N(L10N_BUNDLE); michael@0: michael@0: /** michael@0: * Shortcuts for the L10N helper functions. Used in Cleopatra. michael@0: */ michael@0: var gStrings = { michael@0: // This strings are here so that Cleopatra code could use a simple object michael@0: // lookup. This makes it easier to merge upstream changes. michael@0: "Complete Profile": L10N.getStr("profiler.completeProfile"), michael@0: "Sample Range": L10N.getStr("profiler.sampleRange"), michael@0: "Running Time": L10N.getStr("profiler.runningTime"), michael@0: "Self": L10N.getStr("profiler.self"), michael@0: "Symbol Name": L10N.getStr("profiler.symbolName"), michael@0: michael@0: getStr: function (name) { michael@0: return L10N.getStr(name); michael@0: }, michael@0: michael@0: getFormatStr: function (name, params) { michael@0: return L10N.getFormatStr(name, params); michael@0: } michael@0: };