Skip to content
Commit c30a9694 authored by Josef Weidendorfer's avatar Josef Weidendorfer
Browse files

Fix detection of callgrind files for very long commands

A file created by a callgrind run of "ls /usr/bin/*" was not detected
as callgrind file due to the previous heuristics that the first 2k
characters should contain "events:".
Also checking for "creator: callgrind" fixes this issue.

This assumes that other creators of callgrind files never have such long
command lines, are put the "event:" line before the "cmd:" line.

The real fix would be a mandatory first magic line, which unfortunately is
not part of the format specification, and now we need to be compatible.
parent 75666a21
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment