source: release-kits/lirk3/ant-scripts/tasks/antelope/docs/manual/bk03ch27.html@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 5.2 KB
Line 
1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 27. Performance Monitoring</title><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"><link rel="start" href="index.html" title="Antelope Users Guide"><link rel="up" href="bk03.html" title="Additional Ant Tasks"><link rel="prev" href="bk03ch26.html" title="Chapter 26. TestCase Task"><link rel="next" href="bk03ch28.html" title="Chapter 28. Feedback"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 27. Performance Monitoring</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="bk03ch26.html">Prev</a> </td><th width="60%" align="center">Additional Ant Tasks</th><td width="20%" align="right"> <a accesskey="n" href="bk03ch28.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="performance"></a>Chapter 27. Performance Monitoring</h2></div></div></div>
2<STYLE TYPE="text/css"> <!-- @import url(./style.css); --> </STYLE>
3 <p>
4In addition to the tasks described in this manual, Antelope also ships with a special Ant listener than can keep track of the amount of time that each target and task takes to execute. At the end of the build, these times will be sorted from fastest to slowest and displayed following the build output. This can be useful to pinpoint slow and/or inefficient spots in the build process and identify those areas that could benefit from optimization.
5</p><p>
6The performance listener can be used outside of Antelope by passing a parameter to the command line for Ant:
7</p><p>
8</p><pre class="programlisting">
9
10 ant -listener ise.antelope.common.AntPerformanceListener target
11
12</pre><p>
13</p><p>
14Following is an example of the results from using the listener. The result format is projectname.targetname for targets and projectname.targetname.taskname for tasks. All times are shown to the nearest millisecond.
15</p><pre class="programlisting">
16
17[danson@blackdog antelope]$ ant -listener ise.antelope.common.AntPerformanceListener dist
18Buildfile: build.xml
19
20init:
21
22clean:
23 [delete] Deleting 170 files from /home/danson/apps/antelope/build
24
25compile:
26 [javac] Compiling 61 source files to /home/danson/apps/antelope/build
27
28all:
29
30-build_number:
31
32prep_files:
33 [delete] Deleting 3 files from /home/danson/apps/antelope/config
34 [copy] Copying 3 files to /home/danson/apps/antelope/config
35
36combined:
37 [echo] basedir = /home/danson/apps/antelope
38 [jar] Building jar: /home/danson/apps/antelope/Antelope_1.208.jar
39
40dist:
41 [delete] Deleting 4 files from /home/danson/apps/antelope/dist
42 [zip] Building zip: /home/danson/apps/antelope/dist/Antelope_1.208.zip
43 [echo] Created zip file.
44
45-zip_docs:
46 [zip] Building zip: /home/danson/apps/antelope/dist/Antelope_docs_1.208.zip
47 [echo] Zipped docs to Antelope_docs_1.208.zip.
48
49-zip_tasks:
50 [jar] Building jar: /tmp/Antelope_tasks_1.208.jar
51 [zip] Building zip: /home/danson/apps/antelope/dist/Antelope_tasks_1.208.zip
52 [delete] Deleting: /tmp/Antelope_tasks_1.208.jar
53 [echo] Zipped tasks to Antelope_tasks_1.208.zip.
54 [copy] Copying 1 file to /home/danson/apps/antelope/dist
55
56BUILD SUCCESSFUL
57Total time: 8 seconds
58
59-------------- Target Results -----------------------
60Antelope.all: 0.000 sec
61Antelope.init: 0.011 sec
62Antelope.-build_number: 0.014 sec
63Antelope.clean: 0.233 sec
64Antelope.-zip_tasks: 0.297 sec
65Antelope.prep_files: 0.311 sec
66Antelope.-zip_docs: 0.546 sec
67Antelope.combined: 1.290 sec
68Antelope.compile: 1.724 sec
69Antelope.dist: 2.162 sec
70
71-------------- Task Results -----------------------
72Antelope.init.mkdir: 0.000 sec
73Antelope.init.mkdir: 0.001 sec
74Antelope.dist.echo: 0.002 sec
75Antelope.prep_files.delete: 0.004 sec
76Antelope.combined.echo: 0.005 sec
77Antelope.dist.delete: 0.006 sec
78Antelope.-zip_tasks.echo: 0.007 sec
79Antelope.dist.copy: 0.011 sec
80Antelope.-build_number.buildnumber: 0.014 sec
81Antelope.compile.copy: 0.016 sec
82Antelope.prep_files.copy: 0.020 sec
83Antelope.prep_files.replace: 0.071 sec
84Antelope.-zip_tasks.zip: 0.122 sec
85Antelope.-zip_tasks.jar: 0.161 sec
86Antelope.prep_files.replace: 0.216 sec
87Antelope.clean.delete: 0.233 sec
88Antelope.dist.antcall: 0.421 sec
89Antelope.-zip_docs.zip: 0.540 sec
90Antelope.dist.antcall: 0.685 sec
91Antelope.dist.zip: 1.036 sec
92Antelope.combined.jar: 1.284 sec
93Antelope.compile.javac: 1.708 sec
94
95-------------- Totals -----------------------
96Start time: Thu, 5 Dec 2002 17:18:30
97Stop time: Thu, 5 Dec 2002 17:18:39
98Total time: 8.476 sec
99
100</pre><p>
101</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="bk03ch26.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="bk03.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="bk03ch28.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 26. TestCase Task </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 28. Feedback</td></tr></table></div></body></html>
Note: See TracBrowser for help on using the repository browser.