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

Quelle  wasm-to-js-2.js

  Sprache: JAVA
 

// |jit-test| skip-if: !wasmIsSupported()
// Ensure readGeckoProfilingStack finds at least 1 Wasm frame on the stack.
function calledFromWasm() {
    let frames = readGeckoProfilingStack().flat();
    assertEq(frames.filter(f => f.kind === "wasm").length >= 1true);
}
enableGeckoProfiling();
const text = `(module
    (import "m" "f" (func $f))
    (func (export "test")
    (call $f)
))`;
const bytes = wasmTextToBinary(text);
const mod = new WebAssembly.Module(bytes);
const imports = {"m": {"f": calledFromWasm}};
const instance = new WebAssembly.Instance(mod, imports);
for (let i = 0; i < 150; i++) {
    instance.exports.test();
}

Messung V0.5 in Prozent
C=82 H=85 G=83

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-06-10) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.