Home | Trees | Indices | Help |
---|
|
Reporter.Reporter --+ | PerformanceReporter
PerformanceReporter - Convenience module for performance-related reporters from inca.PerformanceReporter import PerformanceReporter, PerformanceBenchmark performance = PerformanceReporter( name = 'My performance reporter', version = 1, description = 'Measures host performance', url = 'http://inca.sdsc.edu', measurement_name = 'host performance' ) ... benchmark = PerformanceBenchmark() benchmark.addParameter('num_cpus', 16) benchmark.addStatistic('bandwidth', 10, 'Mb/s') performance.addBenchmark('sample', benchmark) reporter.printReport() Module for writing performance related reporters. A performance reporter has one or more benchmarks. Each benchmark has one or more statistics (i.e., results) and can further be described with one or more parameters. For example, <performance> <ID>some_id</ID> <benchmark> <ID>sample</ID> <parameters> <ID>parameters</ID> <parameter> <ID>num_cpus</ID> <value>16</value> </parameter> </parameters> <statistics> <ID>statistics</ID> <statistic> <ID>bandwidth</ID> <value>10</value> <units>Mb/s</units> </statistic> </statistics> </benchmark> </performance> By default, the exit status of the reporter will be set to true (i.e., success).
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
Class constructor that returns a new PerformanceReporter object. The constructor supports the following parameter in addition to those supported by Reporter. measurement_name the name of the performance metric measured by the reporter; default ''.
|
Add a benchmark to the reporter. benchmark is an object of type PerformanceBenchmark. name identifies the benchmark. |
Constructs and returns the body of the reporter.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Mar 20 12:01:20 2008 | http://epydoc.sourceforge.net |