Skip to content

Commit 519138d

Browse files
committed
trace/perf: Rename the old collector
Rename the previous implementation of the so-called perf collector to prepare for a replacement by a new and generic perf collector. Keep the previous implementation for now as the new implementation won't be compatible (in terms of API) with the old one; which should eventually be deprecated before being removed in a future release.
1 parent b96b3a7 commit 519138d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

devlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
from devlib.derived.fps import DerivedGfxInfoStats, DerivedSurfaceFlingerStats
4747

4848
from devlib.trace.ftrace import FtraceCollector
49-
from devlib.trace.perf import PerfCollector
49+
from devlib.trace.perf_stat import PerfStatCollector
5050
from devlib.trace.serial_trace import SerialTraceCollector
5151

5252
from devlib.host import LocalConnection

devlib/trace/perf_stat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
]
3434

3535

36-
class PerfCollector(TraceCollector):
36+
class PerfStatCollector(TraceCollector):
3737
"""
3838
Perf is a Linux profiling with performance counters.
3939
@@ -70,7 +70,7 @@ def __init__(self, target,
7070
optionstring=None,
7171
labels=None,
7272
force_install=False):
73-
super(PerfCollector, self).__init__(target)
73+
super(PerfStatCollector, self).__init__(target)
7474
self.events = events if events else DEFAULT_EVENTS
7575
self.force_install = force_install
7676
self.labels = labels

0 commit comments

Comments
 (0)