timing
Type |
Status |
---|---|
CML extraction template |
|
HTML5 representation |
Attribute |
Value |
---|---|
source |
ADF log |
id |
timing |
name |
Timing statistics resume |
pattern |
\s*Timing\sStatistics.* |
endPattern |
.*\.{5,}+(\s+\S+\s*){6}.*$\s*$\s* |
offset |
-1 |
endOffset |
2 |
xml:base |
statistics/timing.xml |
Input
=================
Timing Statistics
=================
Total Used : CPU= 0.32 System= 0.16 Elapsed= 1.05
Calls Section ( Mean, Percentage )
---------------------------------------------------------------------------------------------------
2 ................ 0.00 0.00 0.00 0.00 0.00 0.00
1 EXIT PROCEDURE ......... 0.75 100.00 0.16 100.00 0.99 100.00
Output text
1<comment class="example.output" id="timing">
2 <module cmlx:lineCount="11" cmlx:templateRef="timing">
3 <scalar dataType="xsd:double" dictRef="cc:cputime">0.32</scalar>
4 <scalar dataType="xsd:double" dictRef="cc:systemtime">0.16</scalar>
5 <scalar dataType="xsd:double" dictRef="cc:elapsedtime">1.05</scalar>
6 </module>
7 </comment>
Template definition
1<templateList> <template pattern="\s*Total\s+Used\s+:.*" endPattern=".*" endOffset="0"> <record>\s*Total\s+Used\s+:\s+CPU={F,cc:cputime}System={F,cc:systemtime}Elapsed={F,cc:elapsedtime}</record> <transform process="pullup" repeat="3" xpath=".//cml:scalar" />
2 </template>
3
4 </templateList>
5<transform process="delete" xpath=".//cml:list[count(*)=0]" />
6<transform process="delete" xpath=".//cml:list[count(*)=0]" />
7<transform process="delete" xpath=".//cml:module[count(*)=0]" />