Menu

#11 Allow reading callgrind data from STDIN

open
nobody
None
5
2016-01-17
2016-01-16
No

It would be really nice if kcachegrind could take the callgrind data from stdin, so you can collect data and start kcachegrind in one go.

The '-r' flag does this for 'regular' cachegrind use, but that won't work for other tools that can be converted to callgrind format.

Discussion

  • Josef Weidendorfer

    The feature itself may be interesting, but loading currently blocks the GUI, and waiting
    for stdin would result in a not-responsive window with a naive implementation.

    But you can write a short shell script doing to same: write stdin to a random file,
    and call kcachegrind then on this random file, e.g. using the bash $RANDOM feature.

     
  • Arnout Engelen

    Arnout Engelen - 2016-01-17

    We could use the convention of allowing '-' as a filename parameter to indicate kcachegrind should read from stdin?

     

Log in to post a comment.