mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 05:37:11 +00:00
a7bc0406ee
- Bug 1155006: Fix unified build sensitivities in js/src/jit. r=shu (6e24e1af1) - Bug 1162766 - Fix more bad implicit constructors in js. r=evilpie (39961b06d) - Bug 1151606 - Stream atoms instead of raw pointers for native functions in tracked optimizations. (r=djvj) (7641ee9d6) - pointer style (540728104) - Bug 1154997 - Deal with self-hosted builtins when stringifying tracked optimization type info. (r=djvj) (92f9a54e6) - pointer style (45742d820) - Bug 1154115 - Rewrite the JSAPI profiling API to use a FrameHandle, as to avoid multiple lookups in JitcodeGlobalTable. (r=djvj) (4d202ba9e) - Bug 1119023 - Timeline in new perf tool should filter out markers, r=jsantell (6fc1a8bbe) - Bug 1132755 - Allocations tree has a bunch of columns that don't make sense, r=jsantell (1ae9ee7e2) - Bug 1142744 - Fix tests broken by bug 1132755, r=me (cc495f72d) - Bug 1133058 - OptionsView button, when clicked, should have an 'open' attribute. r=vp (65a78d896) - Bug 1132765 - Pass through performance memory options for 'probability' and 'maxLogLength' from the front to the memory actor. r=vp (f9bbbe098) - Bug 1141817 - Fix yield statement to correctly return memory actor state so that the performance tool can poll for allocations during recording. r=vp (2ddf7d528) - Bug 1141817 - Followup to fix additional intermittents like bug 1132370, r=vp (eab962f01) - Bug 1142748 - Use a single configuration for starting/stopping recordings, r=jsantell (0181b319a) - bit of Bug 879008 - New UI for the sampling Profiler (32c4d0fe8) - Bug 1123815 - Merge gum into fx-team to enable the Performance++ tool, r=me (84aabbd61) - Bug 1143933 - Expose raw JIT optimization information in performance front end. r=vp,shu (f68a6df50) - Bug 1143915 - Allow multiple calls to memory and timeline actor's start methods, to return the local start time from the actor. r=vp (028ac4187) - Bug 978948 - Add animation generator support for setTimeout in the canvas debugger. r=vp (42d623452) - Bug 985488 - Allow canvas debugger to time out and stop recording frames. Canvas debugger 'wait' style now matches other media styles. Update labels in canvas debugger to explicitly state that it's waiting for rAF cycles, rather than appearing as if something went wrong. r=vporof (b4670d843) - Bug 1144163 - Add a rulers highlighter; added unit test. r=pbrosset (5811a67d0) - Bug 1144163 - Add a rulers highlighter; added highlighter. r=pbrosset (779f88bdd) - Bug 1144163 - Add a rulers highlighter; added gcli command and button. r=pbrosset (d0d13da51) - Bug 1110550 - Enable performance overview graphs to rerender and change on devtools theme switch. r=vp (bd91ca7cf) - Bug 1149630 - Performance graphs should inherit from a common graph and be similarly styled. r=vporof (481c841f1) - Bug 1150733 - Correctly internationalize jit samples label. r=vporof, r=flod (b5612d1a6) - Bug 1137518 - FlameGraph's destroy function should be async, r=jsantell (f103e4c15) - Bug 1137503 - Avoid potential infinite loops in `findOptimalTickInterval` functions, r=jsantell (95df6c04a) - Bug 1121194 - Support vertical panning for the flamegraph in the new performance tool, r=jsantell (06241b5b2) - Bug 1121180 - Support dark theme in flamecharts for the performance tool. r=vp (c76abe237) - Bug 1059308 - Add Target.isTabActor to tell if the remote tab actor supports attach/detach requests. r=jryans (e03dcef93) - Bug 1132370 - Wrong State: Expected 'attached', but current state is 'detached', r=jsantell (e884e8db9) - No Bug - Fix documentation for _startMemory and _stopMemory in performance/modules/front.js, r=me DONTBUILD (d79090b31) - Bug 1147656 - Remove duplicate profiler defaults from the front end and just use on the server. r=vp (35c015dd0) - Bug 1046234 - Add more DevTools Telemetry measures (display size etc) r=pbrosset, r=gijs (a235681b4) - actually package telemetry.js (e8f3a58a4) - Bug 1077464 - Wire console.profile/profileEnd to the new performance tool. Move most of the recording-model logic from the front end into the PerformanceFront and PerformanceActorConnection so it can manage recordings without the front end being viewed. r=vp,jryans,pbrosset (eef8e18c3) - Bug 1144363 - Fix this._telemetry is undefined in gDevTools. r=bgrins (ba7d02902) - init telemetry, missing parts of Bug 866642 (1e70df975) - do not use sysctl.h on Linux anymore, since it is not provided by recent glibc (b2467d7ce) - clean up some telemetry issues of histogram, parts of Bug 974171 (d30c8d0ad) - move devtools to browser - part 1 (9a856f452) - Bug 1291423: Explicitly qualify the destructor call that we invoke in Maybe::reset. r=Waldo (944904a7d) - Bug 1148075 - Dynamically add XUL commands for the debugger frontend. r=vporof (60bc91f8f) - Bug 1147945 - Let the profiler's buffer size and sample rate be configurable via prefs. r=vp (acebcbdd9) - Bug 1124326 - Improve packageDir support for Cordova. r=ochameau (4b736580a) - Bug 1124326 - Support Cordova w/o build file. r=ochameau (d4b50aeae) - Bug 1134029 - Fix 'Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIURI.host]' timeouts, r=jsantell (18d16a5d0) - Bug 1147806 - Content frame filtering is confused when profiling FxOS, r=jsantell (b3c62c552) - Bug 1108843 - Generalize platform data in call tree view when platform data is hidden. r=vporof (354553ed7) - Bug 1138928 - Display only function name and file, instead of full url, in flame graphs. r=vp (4169689c1) - Bug 1152605 - Should not show host names for chrome URIs. r=vporof (c6dcf9e78) - Bug 1147604 - Inverted call trees should list (root) as leaves. r=jsantell (01768267f) - Bug 1075450 - Disable some Awesomebar actions for private windows r=mak (21d5586e7) - Bug 1120616 - Part 1: Implement filter styles in rule view r=bgrins (b66ee0282) - Bug 1120616 - Part 2: Add unit tests for filter styles in rule view r=bgrins (2892503d8) - Bug 1120616 - Part 3: Adjust the styles in the computed view's filter style search r=bgrins (41f8fae1b) - Bug 1120616 - Part 4: Add textbox context menu for rule and computed view r=bgrins (ff3f868ad) - Bug 1120616 - Part 5: Refactor style inspector tests to use synthesizeKeys r=bgrins (41db021d7) - Bug 1102219 - Part 5: Replace more `String.prototype.contains` with `String.prototype.includes` in chrome code. r=till (86ed03588) - Bug 1154018 - Check to see that nsIURI's host exists when parsing location for framenodes, and cache failures. r=vp (9494d52e7) - Bug 1160691 - Optimize FrameUtils.isContent and FrameUtils.parseLocation. (r=jsantell) (09118fd5d) - Bug 1154115 - Make the performance devtool handle the new profiler JSON format. (r=jsantell,vporof) (e3e5be7a4) - Bug 1059308 - Make frame selection button to work in browser toolbox. r=jryans,past (30fe6e61e) - Bug 1059308 - Fix tests to support chrome actor. r=jryans (01cf3926c) - Bug 1147042 - Rename attachProcess to getProcess. r=ochameau (0393ffb80) - Bug 1145824 - Profiler actor and performance tools now handle passing in a startTime to filter out SPS profiles on platform rather than client. r=vp,fitzgen (f225116ba) - Bug 1157718 - Do not use Array.prototype.includes in production code that leaves nightly in performance tool. r=fitzgen (ff06d284e) - Bug 1140728 - Rename 'Memory' to 'Allocations' in the new performance tool. r=jsantell (f584e720f) - Bug 1137500 - Always wait for the overview to be rendered in tests after a recording finishes, unless otherwise specified, r=jsantell (59825e179) - Bug 1137487 - AbstractCanvasGraph's destroy function should be async, r=jsantell (a17ae00b5) - Bug 1132758 - Performance feature visibility now based on a per recording-basis, dependent on features enabled and server support. r=vp (0d080a7c2) - Bug 1147035 - Make DeveloperToolbar.jsm use the gBrowser.contentDocumentAsCPOW shortcut. r=past. (251eff125) - Bug 1151168 - Don't flush profiled threads that are pending deletion on JS shutdown and don't delete expired markers when resetting the profile buffer. (r=djvj) (90721313a)
382 lines
12 KiB
JavaScript
382 lines
12 KiB
JavaScript
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
"use strict";
|
|
|
|
const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
|
|
|
|
Cu.import("resource://gre/modules/Services.jsm");
|
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|
Cu.import("resource://gre/modules/devtools/SideMenuWidget.jsm");
|
|
Cu.import("resource://gre/modules/devtools/ViewHelpers.jsm");
|
|
Cu.import("resource://gre/modules/devtools/Console.jsm");
|
|
Cu.import("resource://gre/modules/devtools/gDevTools.jsm");
|
|
|
|
const require = Cu.import("resource://gre/modules/devtools/Loader.jsm", {}).devtools.require;
|
|
const promise = Cu.import("resource://gre/modules/Promise.jsm", {}).Promise;
|
|
const EventEmitter = require("devtools/toolkit/event-emitter");
|
|
const { CallWatcherFront } = require("devtools/server/actors/call-watcher");
|
|
const { CanvasFront } = require("devtools/server/actors/canvas");
|
|
|
|
const CANVAS_ACTOR_RECORDING_ATTEMPT = gDevTools.testing ? 500 : 5000;
|
|
|
|
XPCOMUtils.defineLazyModuleGetter(this, "Task",
|
|
"resource://gre/modules/Task.jsm");
|
|
|
|
XPCOMUtils.defineLazyModuleGetter(this, "PluralForm",
|
|
"resource://gre/modules/PluralForm.jsm");
|
|
|
|
XPCOMUtils.defineLazyModuleGetter(this, "FileUtils",
|
|
"resource://gre/modules/FileUtils.jsm");
|
|
|
|
XPCOMUtils.defineLazyModuleGetter(this, "NetUtil",
|
|
"resource://gre/modules/NetUtil.jsm");
|
|
|
|
XPCOMUtils.defineLazyModuleGetter(this, "DevToolsUtils",
|
|
"resource://gre/modules/devtools/DevToolsUtils.jsm");
|
|
|
|
// The panel's window global is an EventEmitter firing the following events:
|
|
const EVENTS = {
|
|
// When the UI is reset from tab navigation.
|
|
UI_RESET: "CanvasDebugger:UIReset",
|
|
|
|
// When all the animation frame snapshots are removed by the user.
|
|
SNAPSHOTS_LIST_CLEARED: "CanvasDebugger:SnapshotsListCleared",
|
|
|
|
// When an animation frame snapshot starts/finishes being recorded, and
|
|
// whether it was completed succesfully or cancelled.
|
|
SNAPSHOT_RECORDING_STARTED: "CanvasDebugger:SnapshotRecordingStarted",
|
|
SNAPSHOT_RECORDING_FINISHED: "CanvasDebugger:SnapshotRecordingFinished",
|
|
SNAPSHOT_RECORDING_COMPLETED: "CanvasDebugger:SnapshotRecordingCompleted",
|
|
SNAPSHOT_RECORDING_CANCELLED: "CanvasDebugger:SnapshotRecordingCancelled",
|
|
|
|
// When an animation frame snapshot was selected and all its data displayed.
|
|
SNAPSHOT_RECORDING_SELECTED: "CanvasDebugger:SnapshotRecordingSelected",
|
|
|
|
// After all the function calls associated with an animation frame snapshot
|
|
// are displayed in the UI.
|
|
CALL_LIST_POPULATED: "CanvasDebugger:CallListPopulated",
|
|
|
|
// After the stack associated with a call in an animation frame snapshot
|
|
// is displayed in the UI.
|
|
CALL_STACK_DISPLAYED: "CanvasDebugger:CallStackDisplayed",
|
|
|
|
// After a screenshot associated with a call in an animation frame snapshot
|
|
// is displayed in the UI.
|
|
CALL_SCREENSHOT_DISPLAYED: "CanvasDebugger:ScreenshotDisplayed",
|
|
|
|
// After all the thumbnails associated with an animation frame snapshot
|
|
// are displayed in the UI.
|
|
THUMBNAILS_DISPLAYED: "CanvasDebugger:ThumbnailsDisplayed",
|
|
|
|
// When a source is shown in the JavaScript Debugger at a specific location.
|
|
SOURCE_SHOWN_IN_JS_DEBUGGER: "CanvasDebugger:SourceShownInJsDebugger",
|
|
SOURCE_NOT_FOUND_IN_JS_DEBUGGER: "CanvasDebugger:SourceNotFoundInJsDebugger"
|
|
};
|
|
|
|
const HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
const STRINGS_URI = "chrome://global/locale/devtools/canvasdebugger.properties";
|
|
const SHARED_STRINGS_URI = "chrome://global/locale/devtools/shared.properties";
|
|
|
|
const SNAPSHOT_START_RECORDING_DELAY = 10; // ms
|
|
const SNAPSHOT_DATA_EXPORT_MAX_BLOCK = 1000; // ms
|
|
const SNAPSHOT_DATA_DISPLAY_DELAY = 10; // ms
|
|
const SCREENSHOT_DISPLAY_DELAY = 100; // ms
|
|
const STACK_FUNC_INDENTATION = 14; // px
|
|
|
|
// This identifier string is simply used to tentatively ascertain whether or not
|
|
// a JSON loaded from disk is actually something generated by this tool or not.
|
|
// It isn't, of course, a definitive verification, but a Good Enough™
|
|
// approximation before continuing the import. Don't localize this.
|
|
const CALLS_LIST_SERIALIZER_IDENTIFIER = "Recorded Animation Frame Snapshot";
|
|
const CALLS_LIST_SERIALIZER_VERSION = 1;
|
|
const CALLS_LIST_SLOW_SAVE_DELAY = 100; // ms
|
|
|
|
/**
|
|
* The current target and the Canvas front, set by this tool's host.
|
|
*/
|
|
let gToolbox, gTarget, gFront;
|
|
|
|
/**
|
|
* Initializes the canvas debugger controller and views.
|
|
*/
|
|
function startupCanvasDebugger() {
|
|
return promise.all([
|
|
EventsHandler.initialize(),
|
|
SnapshotsListView.initialize(),
|
|
CallsListView.initialize()
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* Destroys the canvas debugger controller and views.
|
|
*/
|
|
function shutdownCanvasDebugger() {
|
|
return promise.all([
|
|
EventsHandler.destroy(),
|
|
SnapshotsListView.destroy(),
|
|
CallsListView.destroy()
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* Functions handling target-related lifetime events.
|
|
*/
|
|
let EventsHandler = {
|
|
/**
|
|
* Listen for events emitted by the current tab target.
|
|
*/
|
|
initialize: function() {
|
|
this._onTabNavigated = this._onTabNavigated.bind(this);
|
|
gTarget.on("will-navigate", this._onTabNavigated);
|
|
gTarget.on("navigate", this._onTabNavigated);
|
|
},
|
|
|
|
/**
|
|
* Remove events emitted by the current tab target.
|
|
*/
|
|
destroy: function() {
|
|
gTarget.off("will-navigate", this._onTabNavigated);
|
|
gTarget.off("navigate", this._onTabNavigated);
|
|
},
|
|
|
|
/**
|
|
* Called for each location change in the debugged tab.
|
|
*/
|
|
_onTabNavigated: function(event) {
|
|
if (event != "will-navigate") {
|
|
return;
|
|
}
|
|
// Make sure the backend is prepared to handle <canvas> contexts.
|
|
gFront.setup({ reload: false });
|
|
|
|
// Reset UI.
|
|
SnapshotsListView.empty();
|
|
CallsListView.empty();
|
|
|
|
$("#record-snapshot").removeAttribute("checked");
|
|
$("#record-snapshot").removeAttribute("disabled");
|
|
$("#record-snapshot").hidden = false;
|
|
|
|
$("#reload-notice").hidden = true;
|
|
$("#empty-notice").hidden = false;
|
|
$("#waiting-notice").hidden = true;
|
|
|
|
$("#debugging-pane-contents").hidden = true;
|
|
$("#screenshot-container").hidden = true;
|
|
$("#snapshot-filmstrip").hidden = true;
|
|
|
|
window.emit(EVENTS.UI_RESET);
|
|
}
|
|
};
|
|
|
|
/**
|
|
* Localization convenience methods.
|
|
*/
|
|
let L10N = new ViewHelpers.L10N(STRINGS_URI);
|
|
let SHARED_L10N = new ViewHelpers.L10N(SHARED_STRINGS_URI);
|
|
|
|
/**
|
|
* Convenient way of emitting events from the panel window.
|
|
*/
|
|
EventEmitter.decorate(this);
|
|
|
|
/**
|
|
* DOM query helpers.
|
|
*/
|
|
function $(selector, target = document) target.querySelector(selector);
|
|
function $all(selector, target = document) target.querySelectorAll(selector);
|
|
|
|
/**
|
|
* Helper for getting an nsIURL instance out of a string.
|
|
*/
|
|
function nsIURL(url, store = nsIURL.store) {
|
|
if (store.has(url)) {
|
|
return store.get(url);
|
|
}
|
|
let uri = Services.io.newURI(url, null, null).QueryInterface(Ci.nsIURL);
|
|
store.set(url, uri);
|
|
return uri;
|
|
}
|
|
|
|
// The cache used in the `nsIURL` function.
|
|
nsIURL.store = new Map();
|
|
|
|
/**
|
|
* Gets the fileName part of a string which happens to be an URL.
|
|
*/
|
|
function getFileName(url) {
|
|
try {
|
|
let { fileName } = nsIURL(url);
|
|
return fileName || "/";
|
|
} catch (e) {
|
|
// This doesn't look like a url, or nsIURL can't handle it.
|
|
return "";
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Gets an image data object containing a buffer large enough to hold
|
|
* width * height pixels.
|
|
*
|
|
* This method avoids allocating memory and tries to reuse a common buffer
|
|
* as much as possible.
|
|
*
|
|
* @param number w
|
|
* The desired image data storage width.
|
|
* @param number h
|
|
* The desired image data storage height.
|
|
* @return ImageData
|
|
* The requested image data buffer.
|
|
*/
|
|
function getImageDataStorage(ctx, w, h) {
|
|
let storage = getImageDataStorage.cache;
|
|
if (storage && storage.width == w && storage.height == h) {
|
|
return storage;
|
|
}
|
|
return getImageDataStorage.cache = ctx.createImageData(w, h);
|
|
}
|
|
|
|
// The cache used in the `getImageDataStorage` function.
|
|
getImageDataStorage.cache = null;
|
|
|
|
/**
|
|
* Draws image data into a canvas.
|
|
*
|
|
* This method makes absolutely no assumptions about the canvas element
|
|
* dimensions, or pre-existing rendering. It's a dumb proxy that copies pixels.
|
|
*
|
|
* @param HTMLCanvasElement canvas
|
|
* The canvas element to put the image data into.
|
|
* @param number width
|
|
* The image data width.
|
|
* @param number height
|
|
* The image data height.
|
|
* @param array pixels
|
|
* An array buffer view of the image data.
|
|
* @param object options
|
|
* Additional options supported by this operation:
|
|
* - centered: specifies whether the image data should be centered
|
|
* when copied in the canvas; this is useful when the
|
|
* supplied pixels don't completely cover the canvas.
|
|
*/
|
|
function drawImage(canvas, width, height, pixels, options = {}) {
|
|
let ctx = canvas.getContext("2d");
|
|
|
|
// FrameSnapshot actors return "snapshot-image" type instances with just an
|
|
// empty pixel array if the source image is completely transparent.
|
|
if (pixels.length <= 1) {
|
|
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
return;
|
|
}
|
|
|
|
let imageData = getImageDataStorage(ctx, width, height);
|
|
imageData.data.set(pixels);
|
|
|
|
if (options.centered) {
|
|
let left = (canvas.width - width) / 2;
|
|
let top = (canvas.height - height) / 2;
|
|
ctx.putImageData(imageData, left, top);
|
|
} else {
|
|
ctx.putImageData(imageData, 0, 0);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Draws image data into a canvas, and sets that as the rendering source for
|
|
* an element with the specified id as the -moz-element background image.
|
|
*
|
|
* @param string id
|
|
* The id of the -moz-element background image.
|
|
* @param number width
|
|
* The image data width.
|
|
* @param number height
|
|
* The image data height.
|
|
* @param array pixels
|
|
* An array buffer view of the image data.
|
|
*/
|
|
function drawBackground(id, width, height, pixels) {
|
|
let canvas = document.createElementNS(HTML_NS, "canvas");
|
|
canvas.width = width;
|
|
canvas.height = height;
|
|
|
|
drawImage(canvas, width, height, pixels);
|
|
document.mozSetImageElement(id, canvas);
|
|
|
|
// Used in tests. Not emitting an event because this shouldn't be "interesting".
|
|
if (window._onMozSetImageElement) {
|
|
window._onMozSetImageElement(pixels);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Iterates forward to find the next draw call in a snapshot.
|
|
*/
|
|
function getNextDrawCall(calls, call) {
|
|
for (let i = calls.indexOf(call) + 1, len = calls.length; i < len; i++) {
|
|
let nextCall = calls[i];
|
|
let name = nextCall.attachment.actor.name;
|
|
if (CanvasFront.DRAW_CALLS.has(name)) {
|
|
return nextCall;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Iterates backwards to find the most recent screenshot for a function call
|
|
* in a snapshot loaded from disk.
|
|
*/
|
|
function getScreenshotFromCallLoadedFromDisk(calls, call) {
|
|
for (let i = calls.indexOf(call); i >= 0; i--) {
|
|
let prevCall = calls[i];
|
|
let screenshot = prevCall.screenshot;
|
|
if (screenshot) {
|
|
return screenshot;
|
|
}
|
|
}
|
|
return CanvasFront.INVALID_SNAPSHOT_IMAGE;
|
|
}
|
|
|
|
/**
|
|
* Iterates backwards to find the most recent thumbnail for a function call.
|
|
*/
|
|
function getThumbnailForCall(thumbnails, index) {
|
|
for (let i = thumbnails.length - 1; i >= 0; i--) {
|
|
let thumbnail = thumbnails[i];
|
|
if (thumbnail.index <= index) {
|
|
return thumbnail;
|
|
}
|
|
}
|
|
return CanvasFront.INVALID_SNAPSHOT_IMAGE;
|
|
}
|
|
|
|
/**
|
|
* Opens/selects the debugger in this toolbox and jumps to the specified
|
|
* file name and line number.
|
|
*/
|
|
function viewSourceInDebugger(url, line) {
|
|
let showSource = ({ DebuggerView }) => {
|
|
let item = DebuggerView.Sources.getItemForAttachment(a => a.source.url === url);
|
|
if (item) {
|
|
DebuggerView.setEditorLocation(item.attachment.source.actor, line, { noDebug: true }).then(() => {
|
|
window.emit(EVENTS.SOURCE_SHOWN_IN_JS_DEBUGGER);
|
|
}, () => {
|
|
window.emit(EVENTS.SOURCE_NOT_FOUND_IN_JS_DEBUGGER);
|
|
});
|
|
}
|
|
}
|
|
|
|
// If the Debugger was already open, switch to it and try to show the
|
|
// source immediately. Otherwise, initialize it and wait for the sources
|
|
// to be added first.
|
|
let debuggerAlreadyOpen = gToolbox.getPanel("jsdebugger");
|
|
gToolbox.selectTool("jsdebugger").then(({ panelWin: dbg }) => {
|
|
if (debuggerAlreadyOpen) {
|
|
showSource(dbg);
|
|
} else {
|
|
dbg.once(dbg.EVENTS.SOURCES_ADDED, () => showSource(dbg));
|
|
}
|
|
});
|
|
}
|