Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: systrace/systrace/tracing_agents/battor_trace_agent.py

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from os import path 5 from os import path
6 import atexit 6 import atexit
7 import logging 7 import logging
8 import py_utils 8 import py_utils
9 9
10 from battor import battor_wrapper 10 from battor import battor_wrapper
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 during that sample. 104 during that sample.
105 105
106 time = time since start of trace (ms) 106 time = time since start of trace (ms)
107 current = current through battery (mA) - this can be negative if the 107 current = current through battery (mA) - this can be negative if the
108 battery is charging 108 battery is charging
109 voltage = voltage of battery (mV) 109 voltage = voltage of battery (mV)
110 110
111 Returns: 111 Returns:
112 The trace data. 112 The trace data.
113 """ 113 """
114 return tracing_agents.TraceResult('powerTraceAsString', 114 return tracing_agents.TraceResult(
115 '\n'.join(self._battor_wrapper.CollectTraceData())) 115 'powerTraceAsString', self._battor_wrapper.CollectTraceData())
OLDNEW
« no previous file with comments | « systrace/systrace/tracing_agents/atrace_agent.py ('k') | systrace/systrace/tracing_agents/battor_trace_agent_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698