From: Nicholas Nethercote Date: Wed, 2 Oct 2002 11:47:12 +0000 (+0000) Subject: Updated Cachegrind docs: you have to use "valgrind --skin=cachegrind" to run X-Git-Tag: svn/VALGRIND_1_9_4~262 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db36fdcaf16ca36ba9794424cc806eb116f0849a;p=thirdparty%2Fvalgrind.git Updated Cachegrind docs: you have to use "valgrind --skin=cachegrind" to run it as the "cachegrind" script is now dead. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1165 --- diff --git a/cachegrind/docs/manual.html b/cachegrind/docs/manual.html index 5c57e71f86..85462560e6 100644 --- a/cachegrind/docs/manual.html +++ b/cachegrind/docs/manual.html @@ -80,8 +80,8 @@ should profile your program as it will be normally run. The two steps are:
    -
  1. Run your program with cachegrind in front of the - normal command line invocation. When the program finishes, +
  2. Run your program with valgrind --skin=cachegrind in front of + the normal command line invocation. When the program finishes, Valgrind will print summary cache statistics. It also collects line-by-line information in a file cachegrind.out.pid, where pid @@ -175,17 +175,11 @@ interested to hear from anyone who does.

    1.3  Profiling programs

    -Cache profiling is enabled by using the --cachesim=yes -option to the valgrind shell script. Alternatively, it -is probably more convenient to use the cachegrind script. -Either way automatically turns off Valgrind's memory checking functions, -since the cache simulation is slow enough already, and you probably -don't want to do both at once. -

    -To gather cache profiling information about the program ls --l, type: +Cache profiling is enabled by using the --skin=cachegrind +option to the valgrind shell script. To gather cache profiling +information about the program ls -l, type: -

    cachegrind ls -l
    +
    valgrind --skin=cachegrind ls -l
    The program will execute (slowly). Upon completion, summary statistics that look like this will be printed: @@ -230,8 +224,8 @@ described in the next section.

    Things to note about the cachegrind.out.pid file:

      -
    • It is written every time valgrind --cachesim=yes or - cachegrind is run, and will overwrite any existing +
    • It is written every time valgrind --skin=cachegrind + is run, and will overwrite any existing cachegrind.out.pid in the current directory (but that won't happen very often because it takes some time for process ids to be recycled).
    • @@ -266,7 +260,9 @@ The interesting cache-simulation specific options are: size and line_size are measured in bytes. The three items must be comma-separated, but with no spaces, eg: -
      cachegrind --I1=65535,2,64
      +
      + valgrind --skin=cachegrind --I1=65535,2,64 +
      You can specify one, two or three of the I1/D1/L2 caches. Any level not manually specified will be simulated using the configuration found in the @@ -386,7 +382,7 @@ First up is a summary of the annotation options:
    Then follows summary statistics for the whole program. These are similar -to the summary provided when running cachegrind.

    +to the summary provided when running valgrind --skin=cachegrind.

    Then follows function-by-function statistics. Each function is identified by a file_name:function_name pair. If a column