Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TraceBase.with_time_offset() #2155

Conversation

douglas-raillard-arm
Copy link
Contributor

@douglas-raillard-arm douglas-raillard-arm commented Dec 15, 2023

# 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')

FEATURE

Allow creating a TraceView that applies some arbitrary post-processing
on the event dataframes. This provides the basis for creating arbitrary
views such as timestamp shifting, or even task-specific view of the
trace.
FEATURE

Allow creating a TraceView that shifts all the timestamps by some
user-defined amount.
@douglas-raillard-arm
Copy link
Contributor Author

Closing as the project has moved to https://gitlab.arm.com/tooling/lisa/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant