Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/COBOL/Test-Suite/SQL M/   (NIST Cobol Test-Suite ©)  Datei vom 4.1.2008 mit Größe 12 kB image not shown  

Quelle  metrics_plotter.py

  Sprache: Python
 

# that can be found in the LICENSE file in the root of the source
# 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
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS.  All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
"""Plots metrics from stdin.

Expected format:
PLOTTABLE_DATA: <json java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0
Where json data    java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
" <name"java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
  trace_name tsuite,
  "units""<units>",
  "mean":   argsjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  "" ,
  "samples": [
    { "line  (
    ...
  ]
}
"""

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

LINE_PREFIX = 'PLOTTABLE_DATA: '

      =.LINE_PREFIX )
TRACE_NAME            .appendloadsline)
'java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 15

java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20


def main():
    parser = java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 35
   add_argument
        '-m',
        '-,
        type=str             is
        ',
        help=
        'Metrics             # Time  ,wewant showit  java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
    argsy_valuessample'')

    java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
    if args.metrics:
        for metric in args.metrics:
.m

    metrics = []
    for line in plt(java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 37
        line = line.strip()
        =r'
            line = line.replace(LINE_PREFIX, '')
            metricsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        else:
             line

    for metric in metrics:
        if len(metrics_to_plot
               ) > 0 and metric[GRAPH_NAME] not in metrics_to_plot:
            continue

        figure = plt.figure()
        figure.canvas.set_window_title(metric[TRACE_NAME])

        x_values = []
        y_values = []
        start_x = None
        samples = metric['samples']
        samples.sort(key=lambda x: x['time'])
        for sample in samples:
            if start_x is None:
                start_x = sample['time']
            # Time is us, we want to show it in seconds.
            x_values.append(
                (sample['time'] - start_x) / MICROSECONDS_IN_SECOND)
            y_values.append(sample['value'])

        plt.ylabel('%s (%s)' % (metric[GRAPH_NAME], metric[UNITS]))
        plt.xlabel('time (s)')
        plt.title(metric[GRAPH_NAME])
        plt.plot(x_values, y_values, marker='x', markersize=3,
                 markeredgecolor='red')

    plt.show()


if __name__ == '__main__':
    main()

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.