Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316347

Summary: [LTTng] Unexpected time range selection upon punctual time selection
Product: z_Archived Reporter: Alvaro Sanchez-Leon <alvaro.sanchez-leon>
Component: LinuxToolsAssignee: Francois Chouinard <fchouinard>
Status: CLOSED FIXED QA Contact: Francois Chouinard <fchouinard>
Severity: normal    
Priority: P3 CC: yuriy.vashchuk
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 290046    

Description Alvaro Sanchez-Leon CLA 2010-06-09 14:06:03 EDT
There are three views which present the same time range of event information in different fashion in the Histogram view, Control Flow view and Resources view.  
These three views shall synchronize to the same time range when ever any of them is adjusted by the user.

when ever the user makes a click punctual selection inside the time range window, the three views are expected to reflect the selection and not refresh the information since the time range has not been adjusted.

However the punctual time selection occasionally triggers time range adjustments, 

How to reproduce:

Open an Experiment, 
Zoom the control flow view to display partial portions of experiment data, 
make single time selection in control flow view or resources view, closer the the right or left edges
the time range should not be adjusted.
Comment 1 Alvaro Sanchez-Leon CLA 2010-06-15 07:18:11 EDT
Looking closer to this issue, 
The histogram view has split it horizontal space in a number of x positions, the time range covered by each of the x position depends on the the time window of the whole experiment.
When the histogram view receives a time range update, it first calculates the closest x position and use it as the new center, it then applies the width to the center to estimate the actual start and end borders. 
  The resulting visible time window in the Histogram view is then quite imprecise and does not keep the requested time range, causing big discrepancies with the other views and therefore triggering un-necessary re-selections e.g. clicking inside a selected time range may seem outside of the visible range within the Histogram view.
Comment 2 Yuriy Vashchuk CLA 2010-07-13 11:23:01 EDT
The patch for this bug has been attached to Bug 315889.

Changes:
The sendTmfRangeSynchSignalBroadcast (HistogramView.java) function has been corrected to represent the exact time range selected by selection window in Full Histogram.
Comment 3 Francois Chouinard CLA 2010-07-13 11:48:38 EDT
Resolved with patch from bug315889
Comment 4 Francois Chouinard CLA 2011-07-22 14:37:42 EDT
Delivered with 0.7