From: Mark Wielaard Date: Wed, 13 May 2020 22:53:16 +0000 (+0200) Subject: cl-manual.xml: xref cannot be used inside computeroutput, use link. X-Git-Tag: VALGRIND_3_16_0~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cc73dcc2825d921fe20b8184e0b79982f32a739;p=thirdparty%2Fvalgrind.git cl-manual.xml: xref cannot be used inside computeroutput, use link. --- diff --git a/callgrind/docs/cl-manual.xml b/callgrind/docs/cl-manual.xml index 67e677ed02..10da8d973a 100644 --- a/callgrind/docs/cl-manual.xml +++ b/callgrind/docs/cl-manual.xml @@ -190,7 +190,7 @@ has to rely on heuristics to detect calls and returns. callgrind_control -i on just before the interesting code section is executed. To exactly specify the code position where profiling should start, use the client request - . + CALLGRIND_START_INSTRUMENTATION. If you want to be able to see assembly code level annotation, specify . This will produce @@ -286,9 +286,10 @@ callgrind.out.pid.part-threa Program controlled dumping. Insert - ; - at the position in your code where you want a profile dump to happen. Use - ; to only + CALLGRIND_DUMP_STATS; + at the position in your code where you want a profile dump to + happen. Use + CALLGRIND_ZERO_STATS; to only zero profile counters. See for more information on Callgrind specific client requests. @@ -364,8 +365,8 @@ callgrind.out.pid.part-threa interactively with: callgrind_control -i on (and switching off again by specifying "off" instead of "on"). Second, instrumentation state can be programmatically changed with the - macros ; - and ;. + macros CALLGRIND_START_INSTRUMENTATION; + and CALLGRIND_STOP_INSTRUMENTATION;. Similarly, the collection state at program start can be @@ -511,8 +512,9 @@ callgrind.out.pid.part-threa If your program forks, the child will inherit all the profiling data that has been gathered for the parent. To start with empty profile counter values in the child, the client request - ; - can be inserted into code to be executed by the child, directly after + CALLGRIND_ZERO_STATS; + can be inserted into code to be executed by the child, directly + after fork. However, you will have to make sure that the output file format string @@ -1224,8 +1226,8 @@ their arguments. instrumentation afterwards: it effectivly will run at the same speed as Nulgrind, i.e. at minimal slowdown. Use this to speed up the Callgrind run for uninteresting code parts. Use - to - enable instrumentation again. See also option + CALLGRIND_START_INSTRUMENTATION + to enable instrumentation again. See also option .