|
From: Andrew W. <mi...@gm...> - 2005-01-07 12:31:55
|
I'm trying to use cachegrind to do some profiling, but with everything I try I
get this failure in cg_annotate:
12:03:04# cg_annotate --12734
Line 4: missing command line
This is with valgrind 2.2.0-4 on debian, kernel 2.6.9
Here's a dump of a session trying to cachegrind on 'ls':
12:02:35# valgrind --tool=cachegrind ls
==12734== Cachegrind, an I1/D1/L2 cache profiler for x86-linux.
==12734== Copyright (C) 2002-2004, and GNU GPL'd, by Nicholas Nethercote et al.
==12734== Using valgrind-2.2.0, a program supervision framework for x86-linux.
==12734== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al.
==12734== For more details, rerun with: -v
==12734==
ACKNOWLEDGEMENTS addrcheck corecheck memcheck
AUTHORS auxprogs coregrind missing
COPYING cachegrind debian none
FAQ.txt cachegrind.out.12050 default.supp stamp-h1
INSTALL cachegrind.out.12052 depcomp tags
Makefile cachegrind.out.12054 docs tests
Makefile.am config.guess glibc-2.1.supp
valgrind.pc
Makefile.in config.h glibc-2.2.supp
valgrind.pc.in
NEWS config.h.in glibc-2.3.supp
valgrind.spec
README config.log helgrind
valgrind.spec.in
README_MISSING_SYSCALL_OR_IOCTL config.status include
xfree-3.supp
README_PACKAGERS config.sub install-sh
xfree-4.supp
TODO configure lackey
aclocal.m4 configure.in massif
==12734==
==12734== I refs: 679,016
==12734== I1 misses: 4,049
==12734== L2i misses: 4,039
==12734== I1 miss rate: 0.59%
==12734== L2i miss rate: 0.59%
==12734==
==12734== D refs: 374,502 (258,969 rd + 115,533 wr)
==12734== D1 misses: 7,534 ( 5,336 rd + 2,198 wr)
==12734== L2d misses: 7,506 ( 5,309 rd + 2,197 wr)
==12734== D1 miss rate: 2.0% ( 2.0% + 1.9% )
==12734== L2d miss rate: 2.0% ( 2.0% + 1.9% )
==12734==
==12734== L2 refs: 11,583 ( 9,385 rd + 2,198 wr)
==12734== L2 misses: 11,545 ( 9,348 rd + 2,197 wr)
==12734== L2 miss rate: 1.0% ( 0.9% + 1.9% )
12:02:51# ls
ACKNOWLEDGEMENTS addrcheck configure.in massif
AUTHORS auxprogs corecheck memcheck
COPYING cachegrind coregrind missing
FAQ.txt cachegrind.out.12050 debian none
INSTALL cachegrind.out.12052 default.supp stamp-h1
Makefile cachegrind.out.12054 depcomp tags
Makefile.am cachegrind.out.12734 docs tests
Makefile.in config.guess glibc-2.1.supp
valgrind.pc
NEWS config.h glibc-2.2.supp
valgrind.pc.in
README config.h.in glibc-2.3.supp
valgrind.spec
README_MISSING_SYSCALL_OR_IOCTL config.log helgrind
valgrind.spec.in
README_PACKAGERS config.status include
xfree-3.supp
TODO config.sub install-sh
xfree-4.supp
aclocal.m4 configure lackey
12:02:55# cg_annotate cachegrind.out.12734
usage: cg_annotate [options] --<pid> [source-files]
options for the user, with defaults in [ ], are:
-h --help show this message
-v --version show version
--show=A,B,C only show figures for events A,B,C [all]
--sort=A,B,C sort columns by events A,B,C [event column order]
--threshold=<0--100> percentage of counts (of primary sort event) we
are interested in [99%]
--auto=yes|no annotate all source files containing functions
that helped reach the event count threshold [no]
--context=N print N lines of context before and after
annotated lines [8]
-I --include=<dir> add <dir> to list of directories to search for
source files
Cachegrind is Copyright (C) 2002-2004 Nicholas Nethercote.
Both are licensed under the GNU General Public License, version 2.
Bug reports, feedback, admiration, abuse, etc, to: nj...@ca....
12:03:04# cg_annotate --12734
Line 4: missing command line
|