diff --git a/doc/users_guide.rst b/doc/users_guide.rst index fbe174b3e750b343a201104ccc2c122074444ad8..9f977aed5d235bd83582e5674bd7c2bffeeca642 100644 --- a/doc/users_guide.rst +++ b/doc/users_guide.rst @@ -294,6 +294,8 @@ but we did rename/move things to make them more coherent. **LISA legacy**:: trace.data_frame.trace_event("sched_switch") + # or + trace.df("sched_switch") **LISA next**:: diff --git a/lisa/trace.py b/lisa/trace.py index 393eed14182b46f5c4953b5e3a34882fd52d92fa..b053623874cc6c40a0333c1dbe9e414f7a0d36a3 100644 --- a/lisa/trace.py +++ b/lisa/trace.py @@ -443,21 +443,6 @@ class Trace(Loggable): # DataFrame Getter Methods ############################################################################### - def df(self, event): - """ - Get a dataframe containing all occurrences of the specified trace event - in the parsed trace. - - :param event: Trace event name - :type event: str - """ - warnings.simplefilter('always', DeprecationWarning) #turn off filter - warnings.warn("\n\tUse of Trace::df() is deprecated and will be soon removed." - "\n\tUse Trace::df_events(event_name) instead.", - category=DeprecationWarning) - warnings.simplefilter('default', DeprecationWarning) #reset filter - return self.df_events(event) - def df_events(self, event): """ Get a dataframe containing all occurrences of the specified trace event