mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Bug found by, and fix based on a patch by Mark Wielaard Callgrind format specification was inconsistent with what Callgrind generates, and what callgrind_annotate accepted. Now, callgrind_annotate accepts the examples in the format specification. * Callgrind writes 'cfi=' lines for when a call target goes into another source file. According to the spec, 'cfl=' is used for this. Change the spec to allow both, and change callgrind_annotate to accept both. * The spec requires just an "events:" line as minimum header to render the file as correct according to the specification. callgrind_annotate also expected a 'cmd=' line. Fixed. * The 'summary:' line is optional in the spec. Fixed in callgrind_annotate. If not provided, summary is calculated from all cost lines. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13310