1 |
williamc |
1.2 |
<! Style Sheet Header>
|
2 |
|
|
<html>
|
3 |
|
|
<head>
|
4 |
|
|
<title>insure.html</title>
|
5 |
sashby |
1.4 |
<body bgcolor="beige">
|
6 |
|
|
|
7 |
williamc |
1.2 |
<! End Style Sheet Header -----------Insert Text Here --------------------->
|
8 |
|
|
<center>
|
9 |
|
|
<H1>Using Insure++ in SCRAM</H1>
|
10 |
|
|
<font color=red>S</font>oftware <font color=red>C</font>onfiguration,
|
11 |
|
|
<font color=red>R</font>elease <font color=red>A</font>nd
|
12 |
|
|
<font color=red>M</font>anagement
|
13 |
|
|
</center>
|
14 |
|
|
<hr>
|
15 |
|
|
<a href=http://www.parasoft.com/products/insure/index.htm>Insure</a> is a code instrumenting tool.
|
16 |
|
|
Scram allows you to use this tool throught the standard scram build command.
|
17 |
|
|
Follow the simple steps below to get your instrumented code. Be careful this
|
18 |
|
|
can take a LOT of memory.
|
19 |
|
|
<ol>
|
20 |
|
|
<li> Make sure the insure tool is setup in your environment.<p>
|
21 |
|
|
(CERN based users should read the <a href=http://sdt.cern.ch/>SDT Tools</a>
|
22 |
|
|
documentaion, <a href=http://sdt.cern.ch/Insure/How.html>How to Run Insure</a>
|
23 |
|
|
<p>
|
24 |
|
|
<li> Build the libraries you want to examine with insure with
|
25 |
|
|
<pre>
|
26 |
|
|
scram build <em>libtype</em>_insure
|
27 |
|
|
</pre>
|
28 |
sashby |
1.4 |
,where <em>libtype</em> is either shared or archive,
|
29 |
williamc |
1.2 |
from the appropriate directory.
|
30 |
|
|
<p>
|
31 |
|
|
<li> Build the insure executable
|
32 |
|
|
<pre>
|
33 |
|
|
scram build bin_insure
|
34 |
|
|
</pre>
|
35 |
|
|
<p>
|
36 |
|
|
<li> Now run it as usual ....
|
37 |
|
|
<p>
|
38 |
|
|
</ol>
|
39 |
|
|
<h2>Common Problems</h2>
|
40 |
|
|
<ol>
|
41 |
|
|
<table>
|
42 |
|
|
<tr>
|
43 |
|
|
<td>
|
44 |
|
|
<em>Please add '-Zsl' flag to your "insure" link line</em>
|
45 |
|
|
</td>
|
46 |
|
|
<td>
|
47 |
|
|
You are linking against libraries that have not been compiled with debug and
|
48 |
|
|
insure profiling. If you have at least one insure library this problem should
|
49 |
|
|
be resolved.
|
50 |
|
|
If you are determined to try it you can try <pre>scram build CXXUSERFLAGS=-Zsl</pre>
|
51 |
|
|
</td>
|
52 |
|
|
</tr>
|
53 |
|
|
</table>
|
54 |
|
|
</ol>
|
55 |
|
|
<! Style Sheet Footer ---------------Do not change anything after this line-->
|
56 |
|
|
<hr>
|
57 |
sashby |
1.4 |
<p>
|
58 |
williamc |
1.2 |
<table border=1 width=100%>
|
59 |
|
|
<td align=left>
|
60 |
sashby |
1.4 |
<a href=mailto:Shaun.Ashby@cern.ch>Shaun Ashby</a>
|
61 |
williamc |
1.2 |
</td>
|
62 |
|
|
<td align=right><a href=/cgi-cmc/pagestat>Show Stats</a>
|
63 |
|
|
</td>
|
64 |
|
|
</table>
|
65 |
|
|
</body> </html>
|
66 |
|
|
<! End Style Sheet Footer>
|