Definition: Annotation is an XML document that is optionally produced by emake as it runs: it describes a build in detail<build id="8" start="9/27/2008 5:56:33 PM"> <properties>...</properties>
<environment>...</environment>
<make level="0" cmd="emake.exe --emake-annodetail=basic all"
cwd="C:/Documents and Settings/hpotter/home/tmp" mode="gmake">
...
<job id="J012ba000" node="hogwarts1" type="rule"
name="all" file="Makefile" line="2">
<command line="3">
<argv>echo hi</argv>
<output src="prog">hi</output>
</command>
<timing invoked="0.286931" completed="0.359631" node="hogwarts1"/>
</job>
...
</make>
<metrics>...</metrics>
</build>
--emake-annodetail=<detail>| basic | arguments, commands, output - always present |
| waiting | dependent jobs ("who's waiting for me?") |
| env | environment variables across submakes |
<build>, <property>, and <var> elements:<build id="10" start="9/28/2008 4:00:43 PM"><property name="CommandLine">emake.exe --emake-annodetail=basic all</property><var name="HOST">bertie</var><make> element, which tracks an individual submake:<make level="0" cmd="emake.exe --emake-annodetail=basic"
cwd="C:/Documents and Settings/hpotter/home/tmp"
mode="gmake">
$(MAKE) is invoked, you get a <make> element<job> and <timing> elements, which track build work executed:<job id="J012beac0" thread="df0590" node="gryffindor1-1" type="rule"
name="all" file="Makefile" line="2">
<command ...>...</command>
<timing invoked="0.521839" completed="0.627189" node="gryffindor-1"/>
</job>
<timing> elements inside each job to produce the treemap of build time.<command> elements track process execution.<argv> subelements tell you what was actually executed.<output> elements tell you what was written to stdout/stderr.<command line="3"> <argv>echo hi</argv>
<output>echo hi
</output>
<output src="prog">hi
</output>
</command>
<output> without a src attribute is from emake (like the echo for a command without an @ before it), while <output> with src="prog" is from the program.emake --emake-annodetail=basicanno2log < anno.xml > logfile.stdoutanno2log as well:emake ... | tee anno.xml | anno2logsbinsight anno.xmlcat emake.local.xml | grep "type=\"rule" | wc -lTags: annotation, debugging, emake, sparkbuild, xml
Comment
© 2010 Created by Electric Cloud Administrator
You need to be a member of SparkBuild Community to add comments!
Join SparkBuild Community