blob: a62ee131a1bdc1573e948930e9bf54cd7ce01d64 [file] [log] [blame]
sewardja9a2dcf2002-11-11 00:20:07 +00001<html>
2 <head>
3 <style type="text/css">
4 body { background-color: #ffffff;
5 color: #000000;
6 font-family: Times, Helvetica, Arial;
7 font-size: 14pt}
8 h4 { margin-bottom: 0.3em}
9 code { color: #000000;
10 font-family: Courier;
11 font-size: 13pt }
12 pre { color: #000000;
13 font-family: Courier;
14 font-size: 13pt }
15 a:link { color: #0000C0;
16 text-decoration: none; }
17 a:visited { color: #0000C0;
18 text-decoration: none; }
19 a:active { color: #0000C0;
20 text-decoration: none; }
21 </style>
22 <title>Cachegrind</title>
23 </head>
24
25<body bgcolor="#ffffff">
26
27<a name="title"></a>
28<h1 align=center>Lackey</h1>
29<center>This manual was last updated on 2002-10-03</center>
30<p>
31
32<center>
33<a href="mailto:njn25@cam.ac.uk">njn25@cam.ac.uk</a><br>
njn0e1b5142003-04-15 14:58:06 +000034Copyright &copy; 2000-2003 Nicholas Nethercote
sewardja9a2dcf2002-11-11 00:20:07 +000035<p>
36Lackey is licensed under the GNU General Public License,
37version 2<br>
nethercote137bc552003-11-14 17:47:54 +000038Lackey is an example Valgrind tool that does some very basic program
sewardja9a2dcf2002-11-11 00:20:07 +000039measurement.
40</center>
41
42<p>
43
44<h2>1&nbsp; Lackey</h2>
45
nethercote137bc552003-11-14 17:47:54 +000046Lackey is a simple Valgrind tool that does some basic program measurement.
sewardja9a2dcf2002-11-11 00:20:07 +000047It adds quite a lot of simple instrumentation to the program's code. It is
nethercote137bc552003-11-14 17:47:54 +000048primarily intended to be of use as an example tool.
sewardja9a2dcf2002-11-11 00:20:07 +000049<p>
50It measures three things:
51
52<ol>
53<li>The number of calls to <code>_dl_runtime_resolve()</code>, the function
54 in glibc's dynamic linker that resolves function lookups into shared
55 objects.<p>
56
57<li>The number of UCode instructions (UCode is Valgrind's RISC-like
58 intermediate language), x86 instructions, and basic blocks executed by the
59 program, and some ratios between the three counts.<p>
60
61<li>The number of conditional branches encountered and the proportion of those
62 taken.<p>
63</ol>
64
65<hr width="100%">
66</body>
67</html>
68