Skip to content
Commit 55f9483e authored by Valentin Schneider's avatar Valentin Schneider
Browse files

trace: Fix base behaviour for TraceView/Trace



Due to the __getattr__ magic we do in TraceView, doing

    view = TraceView(...)
    df = view.analysis(...)

    view.add_events_deltas(df)

would end up calling `Trace.add_events_deltas`, which uses the whole
trace's duration for the last delta, which is wrong.

Fix that by letting having add_events_deltas() in the base trace class
shared by Trace and TraceView - while at it, renamed it TraceBase.

Reported-by: default avatarQuentin Perret <quentin.perret@arm.com>
parent 3b63ef01
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment