Skip to content

Add TraceBase.with_time_offset()

# Create a view with arbitrary post processing on event dataframes returned by df_event()
def f(df):
   df = df.copy()
   df = do_something(df)
   return df
trace_view = trace.get_view(process_df=f)

# Create a view with shifted time 
trace_view = trace.with_time_offset(42)

# Create a view with shifted time and cropped to remove all negative timestamps
trace_view = trace.with_time_offset(42)[0:]


df = trace_view.df_event('sched_switch')
Edited by Douglas Raillard

Merge request reports