catapult-project / catapult

Deprecated Catapult GitHub. Please instead use http://crbug.com "Speed>Benchmarks" component for bugs and https://chromium.googlesource.com/catapult for downloading and editing source code..
https://chromium.googlesource.com/catapult
BSD 3-Clause "New" or "Revised" License
1.91k stars 562 forks source link

[traceviewer] Object-Events are not shown if they do not contain a snapshot #4650

Open h-mathias opened 4 years ago

h-mathias commented 4 years ago

In process_track_base.html object-events are not drawn (track) if they do not have at least one snapshot.

// Do not create tracks for instances that have no snapshots.
if (instance.snapshots.length === 0) continue;

Not sure if this is really indented because I think it is also useful to track object lifetimes without the need to create snapshots. Removing this code works for me. Also the Trace Event Format document does not state that a snapshot is required.