lttng / lttng-scope

A trace viewer and analyzer for LTTng kernel and user space traces
https://lttng.org/beta/#lttng-scope
Eclipse Public License 1.0
28 stars 6 forks source link

timegraph: Scrolling vertically with many tree elements is sluggish #28

Closed ghost closed 7 years ago

ghost commented 7 years ago

Label are documented to be relatively heavy on the scenegraph, and it shows when displaying a trace with a high number of threads. Using Text items instead makes the scrolling blazing fast, but Text doesn't have as many pretty-printing capabilities.

The ideal solution would be to move to a ListView, or even TreeView right away. Those only fetch and render data as needed. However those are more complex Controls, and as such they probably wouldn't need a ScrollPane on the tree side to hold them. Some refactoring would be involved.