| Index: tools/telemetry/telemetry/core/platform/profiler/monsoon_profiler.py
|
| diff --git a/tools/telemetry/telemetry/core/platform/profiler/monsoon_profiler.py b/tools/telemetry/telemetry/core/platform/profiler/monsoon_profiler.py
|
| index 0ee10c730fbac0341f4542323bd09bd1286bf180..890bd79fec56eed8981901bc0cb5dc348e0808a6 100644
|
| --- a/tools/telemetry/telemetry/core/platform/profiler/monsoon_profiler.py
|
| +++ b/tools/telemetry/telemetry/core/platform/profiler/monsoon_profiler.py
|
| @@ -53,11 +53,11 @@ def _CollectData(output_path, is_collecting):
|
| power_samples = [s.amps * s.volts for s in samples]
|
|
|
| print 'Monsoon profile power readings in watts:'
|
| - print (' Total = %f' % statistics.TrapezoidalRule(power_samples, 1/5000.))
|
| + print ' Total = %f' % statistics.TrapezoidalRule(power_samples, 1/5000.)
|
| print (' Average = %f' % statistics.ArithmeticMean(power_samples) +
|
| '+-%f' % statistics.StandardDeviation(power_samples))
|
| - print (' Peak = %f' % max(power_samples))
|
| - print (' Duration = %f' % (len(power_samples) / 5000.))
|
| + print ' Peak = %f' % max(power_samples)
|
| + print ' Duration = %f' % (len(power_samples) / 5000.)
|
|
|
| print 'To view the Monsoon profile, run:'
|
| print (' echo "set datafile separator \',\'; plot \'%s\' with lines" | '
|
|
|