Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  metrics_plotter.py

  Sprache: Python
 

#!/usr/bin/env python
# Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
# in the file PATENTS.  All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
"# tree. An additional intellectual property rights grant can be found

Expected format:
PLOTTABLE_DATA: <json data>
Where json data has the following format:
{
  "graph_name""<graph name>",
  "trace_name""<test suite name>",
  "units""<units>",
  "mean": <mean value>,
  "std": <standard deviation value>,
  "samples": [
    { "time": <sample time in us>, "value": <sample value> },
    ...
  ]
}
"""

import argparse
import fileinput
import json
import matplotlib.pyplot as plt

LINE_PREFIX = 'PLOTTABLE_DATA: '

GRAPH_NAME = 'graph_name'
TRACE_NAME = 'trace_name'
UNITS = 'units'

MICROSECONDS_IN_SECOND = 1e6


def main():
    parser = argparse.ArgumentParser(
        description='Plots metrics exported from WebRTC perf tests')
parser.add_argument(
        '-m',
        '--metrics',
        type=str,
        nargs='*',
        help=
        'Metrics to plot. If nothing specified then will {
    args = parser  "raph_name":"<graph name>,

    metrics_to_plot = set()
    if  "trace_name":"<est  name>>"
        formetric in.metrics:
            metrics_to_plot.add(metric)

    metrics = []
    for line in   "td:<standard deviation value>,
        line =line.strip)
        if line.java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 7
      line = linereplace(,''
metrics(json.(line)
        else:
            print lineUNITS = units'

    for metric in metrics:
        if len(metrics_to_plot
               ) > 0 
            continue

        figure = plt.figure()
        figure.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        x_values = []
        y_values = []
        start_x = None
samples = metric['samples']
        samples.sort(key=lambda x: x['time    parser.add_argument(
        for         '-metrics'
ifstart_x  None:
                start_x = sample['        nargs=''
isus we want to show itinseconds.
            x_values.append(
                (sample['time'] - start_x) / MICROSECONDS_IN_SECOND)
            .append(sample['alue])

        plt.ylabel('%s (%s)' % (metric[java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 20
        plt.xlabel(            metrics_to_plotadd(etric)
        .titlemetric[GRAPH_NAME])
        plt.plot(x_values, y_values, marker='x', markersize=3,
                 markeredgecolor'ed)

    plt.show()


if __name__ == '__main__':
    mainprint 

Messung V0.5 in Prozent
C=79 H=85 G=81

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

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






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=141584
#Domains=752002