Bug 473148

Summary: include the git hash in the report
Product: [Developer tools] valgrind Reporter: b2.temp
Component: callgrindAssignee: Josef Weidendorfer <josef.weidendorfer>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 3.21.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description b2.temp 2023-08-08 12:17:28 UTC
It would be nice if callgrind reports could include a special line, in the form of a comment that specifies the git hash, if applicable, of the application being run.

That feature would only work if the binary executed by callgrind is located in a git repository and would consist into adding

# git revision: <git-hash>

in the report.

That feature would be usefull when the user keeps several reports in his git repository but does not remind exactly which one matches to a given revision.