/* 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/. */ // @ts-check "use strict";
/** * This file contains the PerformancePanel, which uses a common API for DevTools to * start and load everything. This will call `gInit` from the initializer.js file, * which does the important initialization for the panel. This code is more concerned * with wiring this panel into the rest of DevTools and fetching the Actor's fronts.
*/
/** * This is implemented (and overwritten) by the EventEmitter. Is there a way * to use mixins with JSDoc? * * @param {string} _eventName
*/
emit(_eventName) {}
/** * Open is effectively an asynchronous constructor. * @return {Promise<PerformancePanel>} Resolves when the Perf tool completes * opening.
*/
open() { if (!this._opening) { this._opening = this._doOpen();
} returnthis._opening;
}
/** * This function is the actual implementation of the open() method. * @returns Promise<PerformancePanel>
*/
async _doOpen() { this.panelWin.gToolbox = this.toolbox; this.panelWin.gIsPanelDestroyed = false;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.