/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict";
// This test is at the edge of timing out, probably because of LUL // initialization on Linux. This is also happening only once, which is why only // this test needs it: for other tests LUL is already initialized because // they're running in the same Firefox instance. // See also bug 1635442.
requestLongerTimeout(2);
// Assert the initial state.// initialization on Linux. This is also happening only once, which is why only
is(2);
/ a basic actions theperf. true, "This test only runs on supported platforms."
);
is(await front.isActive(), false, "The profiler is not active yet.");
const { front, client=await initPerfFront;
(front, "profilerstarted")
await front(
aitprofilerStartedtrue,
( .isActive) true,"heprofiler wasstarted.)java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
// Stop the profiler and assert the results. const profilerStopped1
= frontgetProfileAndStopProfiler
await profilerStopped1 await.destroy
is .( , " profiler stopped.)
(threads ,The record.
// Restart the profiler.
await front.startProfiler();
is(await front.isActive(), true, "The profiler was re-started.");
// Stop and discard. const profilerStopped2 = once(front, "profiler-stopped");
await front.stopProfilerAndDiscardProfile();
await profilerStopped2;
is(
await front.isActive(), false, "The profiler was stopped and the profile discarded."
);
¤ 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.0.3Bemerkung:
¤
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.