| Summary: | [unifyprofiling] GCov annotated editor seems out of place | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] Linux Tools | Reporter: | Andrew Overholt <overholt> | ||||
| Component: | GCov | Assignee: | Roland Grunberg <rgrunber> | ||||
| Status: | CLOSED FIXED | QA Contact: | Xavier Raynaud <xavier.raynaud> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | lilia.ghachem | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 3.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Andrew Overholt
Updating Xavier's email address for existing bugs. I've started taking a look at this, and it's quite possible to do. I have a basic proof of concept where the SourceFile data (containing line information) is fed to an annotation model. Created attachment 241747 [details]
Before/After of GCov Editor Annotations
Going forward, annotations would appear in whichever editor opens the content by default (likely some instance of ICEditor).
(In reply to Roland Grunberg from comment #3) > Created attachment 241747 [details] > Before/After of GCov Editor Annotations > > Going forward, annotations would appear in whichever editor opens the > content by default (likely some instance of ICEditor). Awesome! Should we maintain the hit counts and display the data in a hover (when the cursor is in the "gutter")? (In reply to Andrew Overholt from comment #4) > Awesome! Should we maintain the hit counts and display the data in a hover > (when the cursor is in the "gutter")? Currently hovering over the the annotation (being sure to avoid the other tokens on a line) will display the number of times a line was executed. For some reason I thought the screenshot utility in Fedora ignored tooltips but looks like it's fine. The main things to resolve currently : - Better matching of the source file in the EditorPart (ICElement) to Gcov's SourceFile structure. - Determine when to enable/disable the annotations. (In reply to Roland Grunberg from comment #5) > (In reply to Andrew Overholt from comment #4) > > Awesome! Should we maintain the hit counts and display the data in a hover > > (when the cursor is in the "gutter")? > > Currently hovering over the the annotation (being sure to avoid the other > tokens on a line) will display the number of times a line was executed. Very cool. Great work here, Roland. Posted for review at https://git.eclipse.org/r/24876 . Committed to master as http://git.eclipse.org/c/linuxtools/org.eclipse.linuxtools.git/commit/?id=9b57afda050b403d58b619b6b3d0b68abfc6cbd5 . Non-instrumented lines don't get annotated now (instead of showing up same as non-covered lines). In the future we can consider colourizing based on relative hit counts within a project as before (will need to generate annotation preferences programmatically instead of defining them through extension point registry). |