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: Ensure multi-states are present between intervals of the same state #17

Closed ghost closed 7 years ago

ghost commented 7 years ago

Seems there are cases where multi-states should be present but are missing. For instance, there shouldn't be two intervals with the "usermode" state one after the other, yet there are.

Needs some tests too, both at the model and at the UI levels.

ghost commented 7 years ago

The problem was solely at the model level. Existing tests should already verify that whatever is in the model gets painted correctly. Tests have been added at the model level to ensure it works as expected.