Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/python/mozperftest/mozperftest/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  profiler.py

  Sprache: Python
 

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

from mozperftest.system.geckoprofiler import GeckoProfiler
from mozperftest.system.simpleperf import SimpleperfProfiler

PROFILERS = {
    "simpleperf": SimpleperfProfiler,
    "geckoprofiler": GeckoProfiler,
}


class ProfilingMediator:
    """Used to start and stop any profilers setup through the system later."""

    def __init__(self, profilers=None):
        if profilers is None:
            profilers = list(PROFILERS.keys())
        self.active_profilers = []
        for name in profilers:
            profiler_class = PROFILERS[name]
            if profiler_class.is_enabled():
                self.active_profilers.append(profiler_class.get_controller())

    def start(self, options=None):
        for profiler in self.active_profilers:
            profiler.start(options)

    def stop(self, output_path, index):
        for profiler in self.active_profilers:
            profiler.stop(output_path, index)

Messung V0.5 in Prozent
C=91 H=94 G=92

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© 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.