Bug 487829

Summary: improve readability with function context
Product: [Developer tools] valgrind Reporter: Marcus Kool <mhkool>
Component: callgrindAssignee: Josef Weidendorfer <josef.weidendorfer>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 3.14.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Marcus Kool 2024-05-31 09:31:52 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY

When studying the output of callgrind_annotate I like to see more context: I like to see the whole function instead on N lines of context.  Currently I try to get this effect by increasing --context to a large number but that overshoots.
Could be possible to introduce --include-function=yes option and if used, ignore the --context and output the whole function?

STEPS TO REPRODUCE
1. just run callgrind_annotate


OBSERVED RESULT

8 lines of context

EXPECTED RESULT

the whole function as context
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 22.04


ADDITIONAL INFORMATION