Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  tspaint_test.html   Sprache: HTML

 

 products/Sources/formale Sprachen/C/Firefox/testing/talos/talos/startup_test/tspaint_test.html


<!-- 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/.  -->

<html>
<meta charset="utf-8">
<!-- Pick off begin time as a cgi argument and print it out -->
<!-- call this with an arg, e.g. file://foo/startup-test.html?begin=12345678 -->
<!-- In-line this to avoid compilation. -->
<script>
window.onerror = (message, source, lineno) => {
  dump(`TEST-UNEXPECTED-FAIL | tspaint_test | ${source}, line ${lineno}: ${message}\n`);
};
</script>
<script language="Javascript" type="text/javascript" src="../talos-powers/content/TalosPowersContent.js"></script>
<script language="Javascript" type="text/javascript" src="../talos-powers/content/TalosContentProfiler.js"></script>
<script language="javascript" type="text/javascript">

async function painted() {
  window.removeEventListener("MozAfterPaint", painted, true);

  await TalosPowers.loadPromise;

  await TalosContentProfiler.initFromURLQueryParams(location.search);
  await TalosContentProfiler.finishStartupProfiling();

  let startupInfo = await TalosPowersContent.getStartupInfo();

  // firstPaint2 is a more accurate measurement that checks that pixels are actually visible,
  // not merely that the calls to paint them have been completed.
  let startupTime = startupInfo.firstPaint2 - startupInfo.process;

  document.body.textContent = "Startup time = " + startupTime + " ms";
  if (window.dump) {
    dump("__start_report" + startupTime + "__end_report\n\n");
  }
  dumpConsoleAndQuit();
}

function failed() {
  if (window.dump) {
    dump("BROWSER FAILED TO GENERATE MOZAFTERPAINT IN 5 SECONDS\n");
  }
  dumpConsoleAndQuit();
}

function dumpConsoleAndQuit() {
  TalosPowersContent.dumpConsole();

  // Close window asynchronously, there might still be startup operations that still need to run
  window.setTimeout(function() {
    if (window.dump) {
      dump("__startTimestamp" + window.performance.now() + "__endTimestamp\n");
    }
    TalosPowersContent.goQuitApplication();
  }, 0);
}

window.addEventListener("MozAfterPaint", painted, true);
setTimeout(failed, 5000);

</script>
<body></body>
</html>

Messung
CHZG
859810094

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1102655
#Domains=556677