| 1 | TODO list on control flow view by Mathieu Desnoyers |
| 2 | |
| 3 | - Make "before hook" update process's info : it creates an inconsistency |
| 4 | between state.c process table and process list. Waiting to see if |
| 5 | state.c will take first event time as creation time or first schedule. |
| 6 | |
| 7 | |
| 8 | - Split in process view and CPU ciew : |
| 9 | - remove process 0 from the process list |
| 10 | - add a new viewer to the module : |
| 11 | - cfv.c -> new cpuctl.c : core of the view |
| 12 | - eventhooks.c -> cpuhooks.c : draw cpu states |
| 13 | - processlist.c -> cpulist.c |
| 14 | |
| 15 | - Check cfv for stability, modules load/unload, viewer start (many:3+), stop, |
| 16 | memory leaks; standardize module unloading : in all cases they should call |
| 17 | main window's API for viewer widget removal, and only then the memory should |
| 18 | be released (from the call of the main window). |
| 19 | |
| 20 | - Add viewer selected signal (call main window's API function) |
| 21 | - When viewing a big trace, use the fact that the drawing cannot be more |
| 22 | precise than the amount of horizontal pixels it has : "jump" from one event |
| 23 | to another, converting pixels to time in the trace. It will use efficiently |
| 24 | the "saved state" functionnality of underlying state.c. |
| 25 | |
| 26 | - Modify widgets'organization so the time bar is not affected by scrolling : |
| 27 | it may need to separate process list from the drawing area (not in a |
| 28 | scrolled window anymore). The idea would be to use a scrolled window for |
| 29 | the drawing area, put it in the right side of a hbox, put the tree view |
| 30 | in the left side and then connect the tree view's adjustment to the |
| 31 | scrolled window's scroll bar. |
| 32 | |
| 33 | - Modify icon, text and arc drawing so they are drawn only on top of the |
| 34 | background. They will have to be drawn from the following event or from |
| 35 | closure function in order to respect the priorities. |
| 36 | |
| 37 | Wish list |
| 38 | |
| 39 | - Tool bar for the viewer so many actions can be done on the screen. |
| 40 | |
| 41 | - Ability to select events with the mouse : in a "event selection mode", the |
| 42 | mouse click would "redraw" the image virtually and select an event. |
| 43 | (just like selectionGL in OpenGL). |
| 44 | |
| 45 | - Shown more events if wanted. |
| 46 | |
| 47 | - Use filter to show additionnal events. (do not filter schedule events! |
| 48 | The filtering should be applied to the additionnal events only). Note that it |
| 49 | require no change to filter : just do not make the filter apply on every |
| 50 | incoming events in the viewer's hooks. |
| 51 | |
| 52 | - Add vertical lines showing control flow between processes : it may become |
| 53 | confusing when working on multiple cpu. |
| 54 | |
| 55 | - Add a horizontal line showing the currently selected process. May be a |
| 56 | light dotted line, similar to the current time line, but with a different |
| 57 | color/pattern. |
| 58 | |
| 59 | - Add events customization window : make the user able to select the |
| 60 | text/icon/line color/background color/dots linked with any kind of |
| 61 | event. The framework is there, it must be completed. (the use of |
| 62 | Attributes to call hooks for every event type comes from there) |
| 63 | |
| 64 | |