Bug 407321 - [visualizer] Make Multicore Visualizer canvas filter aware of the current debug session
Summary: [visualizer] Make Multicore Visualizer canvas filter aware of the current deb...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: Next   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 8.3.0   Edit
Assignee: Marc Dumais CLA
QA Contact: Marc Khouzam CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-06 13:34 EDT by Marc Dumais CLA
Modified: 2014-08-27 12:06 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Dumais CLA 2013-05-06 13:34:00 EDT
In the current implementation, the Multicore Visualizer has one filter level available.  If a filter is applied, and the user starts or switches to a different debug session, the same filter is applied to the new debug session.   

It would be preferable that a different filter be available for each debug session, and that any active filter (or absence of filter) be remembered and automatically restored upon re-selection of a session.
Comment 1 Marc Dumais CLA 2013-05-16 08:37:57 EDT
Hi,

Here is a patch for this bug:   

https://git.eclipse.org/r/#/c/12841/1

Here are the main changes :

- Created a new class to manage the filters: MulticoreVisualizerCanvasFilterManager .  It saves the filters and provides the canvas with the one corresponding to a given model/session, creating the filter the first time it's requested.  

- MulticoreVisualizerCanvas: replaced the use of a MulticoreVisualizerCanvasFilter object by a MulticoreVisualizerCanvasFilterManager object.  A default (empty) filter is created the first time a model/session is displayed in the visualizer, showing a non-filtered view of the model.  As filters are being applied or cleared by the user, the corresponding filter is updated.

- VisualizerModel: Added a field to save the DSF sessionId plus getter.  This makes it possible for the canvas to request / setup the filter for a given session.  


Regards,

Marc
Comment 2 Marc Dumais CLA 2013-05-16 08:38:34 EDT
w/r to the patch submitted in this bug, I declare the following:

1) that I am authorized to submit this code change
2) that the code is 100% my own work

Marc Dumais
Comment 3 Marc Dumais CLA 2013-06-21 11:00:52 EDT
Since he had reviewed the original filter feature, I have added Marc-Andre on the review of this patch.  

Bill, if you have time you can still review this, but if not I think Marc-Andre can merge it.
Comment 4 William Swanson CLA 2013-06-21 11:13:38 EDT
I took a quick look through the code; apart from a couple variables
that need a private/protected declaration this looks okay to me.

This is mostly internal, functional behavior, rather than changes
to the UI appearance, so Marc-Andre can merge it.
Comment 5 Marc-André Laperle CLA 2013-06-25 13:39:58 EDT
Merged into master.