Closed bryevdv closed 11 months ago
No, I do not think we should prohibit the GUI from panning left from the origin.
I do think the GUI could be smarter about selecting tiles. That is, on this code path, intersect the request interval with the profile's actual interval:
At that point, it becomes invalid for the GUI to request bounds outside of the profile, and the backend can assert (if it wishes to do so) or ignore it. It's a matter of preference how defensive we want to be in this scenario.
Sure that also seems like a good option for the GUI https://github.com/StanfordLegion/prof-viewer/pull/40
If you start the profiler and hit the left arrow then the profiler crashes immediately. This is due to an overflow in
compute_sample_utilization
that was masked by:which is not true when panning left from the initial starting range:
So, one way to deal with this is to be more careful in
compute_sample_utilization
:This seems to fix the issue, panning left before the initial start-up timestamp works as expected.
Questions for @elliottslaughter: