]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Update callgrind_annotate documentation.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 27 Jan 2019 11:32:32 +0000 (12:32 +0100)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 27 Jan 2019 11:32:32 +0000 (12:32 +0100)
Clarify the meaning of the threshold argument.
Document the per event thresholds that can be given as part
of the --sort option.

callgrind/docs/cl-manual.xml

index 1b04e1d68b13c80ae78f96200c6ed1c57c50e91b..c1eb6ea3559fdcf3cf1ce6761905d7fa726939a9 100644 (file)
@@ -1253,22 +1253,30 @@ their arguments.</para>
 
   <varlistentry>
     <term>
-      <option>--sort=A,B,C</option>
+      <option><![CDATA[--threshold=<0--100> [default: 99%] ]]></option>
     </term>
     <listitem>
-      <para>Sort columns by events A,B,C [event column order].</para>
-      <para>Optionally, each event is followed by a : and a threshold,
-        to specify different thresholds depending on the event.</para>
+      <para>Percentage of counts (of primary sort event) we are 
+        interested in.</para>
+      <para>callgrind_annotate stops printing functions when the sum
+        of the cost percentage of the printed functions is bigger or equal
+        to the given threshold percentage.</para>
     </listitem>
   </varlistentry>
 
   <varlistentry>
     <term>
-      <option><![CDATA[--threshold=<0--100> [default: 99%] ]]></option>
+      <option>--sort=A,B,C</option>
     </term>
     <listitem>
-      <para>Percentage of counts (of primary sort event) we are 
-      interested in.</para>
+      <para>Sort columns by events A,B,C [event column order].</para>
+      <para>Optionally, each event is followed by a : and a threshold,
+        to specify different thresholds depending on the event.</para>
+      <para>callgrind_annotate stops printing functions when the sum
+        of the cost percentage of the printed functions for all the events
+        is bigger or equal to the given event threshold percentages.</para>
+      <para>When one or more thresholds are given via this option,
+        the value of <option>--threshold</option> is ignored.</para>
     </listitem>
   </varlistentry>