| Summary: | [TMF] Refresh problems in TMF events table | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Bernd Hufmann <bernd.hufmann> | ||||||||||
| Component: | LinuxTools | Assignee: | Bernd Hufmann <bernd.hufmann> | ||||||||||
| Status: | CLOSED FIXED | QA Contact: | Francois Chouinard <fchouinard> | ||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | jjohnstn | ||||||||||
| Version: | unspecified | Flags: | fchouinard:
review+
|
||||||||||
| Target Milestone: | --- | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Linux | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Bernd Hufmann
Created attachment 186129 [details]
Fix for refresh problems
The attached patch fixes both reported refresh problems.
1) When selecting a row (event) in the event table during processing of the signal TmfTimeSynchSignal, the old implementation sets the selected row in the middle of the visible table. E.g if 5 rows are visible the selected event is row 3. This causes a problem if the selected event is at the end of the table and not enough events are available in the trace after the to be selected event to set it in the middle of the table. The attached fix checks if enough events are available, before setting the selected row and the top row to be displayed. If not enough events are available it sets the selected row and the top displayed row accordingly.
2) If the to be selected event is in the event cache when executing step c) of the bug report, then the table is not redrawn. The attached fix makes sure that a notification to the relevant items is sent in this case.
Created attachment 186273 [details] Fix for refresh problems This patch augments patch submitted in attachment 186129 [details]. On top of patch 186129, it fixes another refresh problem and it includes a time range verification when selecting a specif event time. Created attachment 186279 [details] Fix for refresh problems This patch replaces previously submitted attachment 186273 [details], because attachment 186273 [details] was the wrong file. Sorry about that. This patch contains all the relevant fixes for this bug. Created attachment 186316 [details]
Fix for refresh problems
This patch contains all previously submitted changes and improves the inter-component synchronization. I.e. it avoids that the Event Table re-synchronizes the timestamp if the timestamp of the initial signal from a source component (CFV) is not in the trace.
Hi Francois Could you please review the latest patch before I commit it? Thank you! Looks great! Comment on attachment 186316 [details]
Fix for refresh problems
Patch committed
Bug fixed with committed patch (attachment 186316 [details])
Delivered with 0.8 |