diff options
author | Javi Merino <javi.merino@arm.com> | 2016-03-22 11:53:55 +0000 |
---|---|---|
committer | Javi Merino <javi.merino@arm.com> | 2016-03-22 12:23:04 +0000 |
commit | 094e742d3504d692e74913ed85ec3d4b176f0469 (patch) | |
tree | 6fd068de469ff275dc9dbe75f9aa38721f32e6f6 /trappy/pid_controller.py | |
parent | e8193b108491cc476801335497a8a5ed7eba5dbb (diff) | |
download | trappy-094e742d3504d692e74913ed85ec3d4b176f0469.tar.gz |
dynamic: use register_ftrace_parser() internally
Most registration of base events in trappy were being done with
FTrace.register_parser() which introduces unnecessary noise when
refactoring. Use register_ftrace_parser() instead as it is what we
recommend for external classes and it simplifies refactoring.
Diffstat (limited to 'trappy/pid_controller.py')
-rw-r--r-- | trappy/pid_controller.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trappy/pid_controller.py b/trappy/pid_controller.py index a3c71ae..976aab2 100644 --- a/trappy/pid_controller.py +++ b/trappy/pid_controller.py @@ -17,7 +17,7 @@ current directory's trace.dat""" from trappy.base import Base -from trappy.ftrace import FTrace +from trappy.dynamic import register_ftrace_parser class PIDController(Base): """Process the power allocator PID controller data in a FTrace dump""" @@ -57,4 +57,4 @@ class PIDController(Base): self.data_frame[["output", "p", "i", "d"]].plot(ax=ax) trappy.plot_utils.post_plot_setup(ax, title=title) -FTrace.register_parser(PIDController, "thermal") +register_ftrace_parser(PIDController, "thermal") |