I want to use valgrind massif to figure out the heap memory used by 7-Zip. When I run massif on 7-Zip, it produces no output. Here's the command.
valgrind --tool=massif /usr/bin/7z a filename.开发者_StackOverflow社区7z filename
I would expect an output file named massif.out.pid within the current directory but no such output is produced. I should add that, using massif on other compression tools like gzip, bzip2, compress, etc. produces a massif.out.pid file.
I also used valgrind -v
and there is no helpful information there either.
Any thoughts on why this doesn't work for 7-Zip?
/usr/bin/7z
is a wrapper script.
#! /bin/sh
exec /usr/lib/p7zip/7z "$@"
Try running
valgrind --tool=massif /usr/lib/p7zip/7z a filename.7z filename
instead.
精彩评论