Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/profiler/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 840 B image not shown  

Quelle  bug1782003.js   Sprache: JAVA

 
function getStack() {
    enableGeckoProfiling();
    let stack = readGeckoProfilingStack();
    // The number of frames depends on JIT flags, but there must be at least
    // one frame for the caller and at most 3 total (the global script, 'testFun'
    // and 'getStack').
    assertEq(stack.length > 0, true);
    assertEq(stack.length <= 3, true);
    assertEq(JSON.stringify(stack).includes('"testFun ('), true);
    disableGeckoProfiling();
}
function testFun() {
    // Loop until this is a JIT frame.
    while (true) {
        let isJitFrame = inJit();
        if (typeof isJitFrame === "string") {
            return// JIT disabled.
        }
        if (isJitFrame) {
            break;
        }
    }

    // Now call getStack to check this frame is on the profiler's JIT stack.
    getStack();
    getStack();
}
testFun();

Messung V0.5
C=83 H=86 G=83

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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.