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>
|
---|
4 | In 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>
|
---|
6 | The 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>
|
---|
14 | Following 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
|
---|
18 | Buildfile: build.xml
|
---|
19 |
|
---|
20 | init:
|
---|
21 |
|
---|
22 | clean:
|
---|
23 | [delete] Deleting 170 files from /home/danson/apps/antelope/build
|
---|
24 |
|
---|
25 | compile:
|
---|
26 | [javac] Compiling 61 source files to /home/danson/apps/antelope/build
|
---|
27 |
|
---|
28 | all:
|
---|
29 |
|
---|
30 | -build_number:
|
---|
31 |
|
---|
32 | prep_files:
|
---|
33 | [delete] Deleting 3 files from /home/danson/apps/antelope/config
|
---|
34 | [copy] Copying 3 files to /home/danson/apps/antelope/config
|
---|
35 |
|
---|
36 | combined:
|
---|
37 | [echo] basedir = /home/danson/apps/antelope
|
---|
38 | [jar] Building jar: /home/danson/apps/antelope/Antelope_1.208.jar
|
---|
39 |
|
---|
40 | dist:
|
---|
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 |
|
---|
56 | BUILD SUCCESSFUL
|
---|
57 | Total time: 8 seconds
|
---|
58 |
|
---|
59 | -------------- Target Results -----------------------
|
---|
60 | Antelope.all: 0.000 sec
|
---|
61 | Antelope.init: 0.011 sec
|
---|
62 | Antelope.-build_number: 0.014 sec
|
---|
63 | Antelope.clean: 0.233 sec
|
---|
64 | Antelope.-zip_tasks: 0.297 sec
|
---|
65 | Antelope.prep_files: 0.311 sec
|
---|
66 | Antelope.-zip_docs: 0.546 sec
|
---|
67 | Antelope.combined: 1.290 sec
|
---|
68 | Antelope.compile: 1.724 sec
|
---|
69 | Antelope.dist: 2.162 sec
|
---|
70 |
|
---|
71 | -------------- Task Results -----------------------
|
---|
72 | Antelope.init.mkdir: 0.000 sec
|
---|
73 | Antelope.init.mkdir: 0.001 sec
|
---|
74 | Antelope.dist.echo: 0.002 sec
|
---|
75 | Antelope.prep_files.delete: 0.004 sec
|
---|
76 | Antelope.combined.echo: 0.005 sec
|
---|
77 | Antelope.dist.delete: 0.006 sec
|
---|
78 | Antelope.-zip_tasks.echo: 0.007 sec
|
---|
79 | Antelope.dist.copy: 0.011 sec
|
---|
80 | Antelope.-build_number.buildnumber: 0.014 sec
|
---|
81 | Antelope.compile.copy: 0.016 sec
|
---|
82 | Antelope.prep_files.copy: 0.020 sec
|
---|
83 | Antelope.prep_files.replace: 0.071 sec
|
---|
84 | Antelope.-zip_tasks.zip: 0.122 sec
|
---|
85 | Antelope.-zip_tasks.jar: 0.161 sec
|
---|
86 | Antelope.prep_files.replace: 0.216 sec
|
---|
87 | Antelope.clean.delete: 0.233 sec
|
---|
88 | Antelope.dist.antcall: 0.421 sec
|
---|
89 | Antelope.-zip_docs.zip: 0.540 sec
|
---|
90 | Antelope.dist.antcall: 0.685 sec
|
---|
91 | Antelope.dist.zip: 1.036 sec
|
---|
92 | Antelope.combined.jar: 1.284 sec
|
---|
93 | Antelope.compile.javac: 1.708 sec
|
---|
94 |
|
---|
95 | -------------- Totals -----------------------
|
---|
96 | Start time: Thu, 5 Dec 2002 17:18:30
|
---|
97 | Stop time: Thu, 5 Dec 2002 17:18:39
|
---|
98 | Total 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>
|
---|