ftrace: rename Run to FTrace
Run is a very generic and inappropriate name for an object that parses
the result of ftrace into a form consumable by python. Rename it to
FTrace in preparation for its generalization.
diff --git a/trappy/devfreq_power.py b/trappy/devfreq_power.py
index 0d34d4d..d4b9a5b 100644
--- a/trappy/devfreq_power.py
+++ b/trappy/devfreq_power.py
@@ -20,7 +20,7 @@
import pandas as pd
from trappy.base import Base
-from trappy.run import Run
+from trappy.ftrace import FTrace
class DevfreqInPower(Base):
@@ -29,7 +29,7 @@
name = "devfreq_in_power"
"""The name of the :mod:`pandas.DataFrame` member that will be created in a
- :mod:`trappy.run.Run` object"""
+ :mod:`trappy.ftrace.FTrace` object"""
unique_word="thermal_power_devfreq_get_power:"
"""The event name in the trace"""
@@ -46,7 +46,7 @@
return pd.DataFrame(self.data_frame["freq"] / 1000000)
-Run.register_class(DevfreqInPower, "thermal")
+FTrace.register_class(DevfreqInPower, "thermal")
class DevfreqOutPower(Base):
@@ -55,7 +55,7 @@
name = "devfreq_out_power"
"""The name of the :mod:`pandas.DataFrame` member that will be created in a
- :mod:`trappy.run.Run` object"""
+ :mod:`trappy.ftrace.FTrace` object"""
unique_word="thermal_power_devfreq_limit:"
"""The event name in the trace"""
@@ -72,4 +72,4 @@
return pd.DataFrame(self.data_frame["freq"] / 1000000)
-Run.register_class(DevfreqOutPower, "thermal")
+FTrace.register_class(DevfreqOutPower, "thermal")