Skip to content

timing ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceADF log
idtiming
nameTiming statistics resume
pattern\s*Timing\sStatistics.*
endPattern.*\.{5,}+(\s+\S+\s*){6}.*$\s*$\s*
offset-1
endOffset2
xml:basestatistics/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 ​

xml
<comment class="example.output" id="timing">
       <module cmlx:lineCount="11" cmlx:templateRef="timing">
        <scalar dataType="xsd:double" dictRef="cc:cputime">0.32</scalar>
        <scalar dataType="xsd:double" dictRef="cc:systemtime">0.16</scalar>
        <scalar dataType="xsd:double" dictRef="cc:elapsedtime">1.05</scalar>
       </module>  
    </comment>

Template definition ​

xml
<templateList>  <template pattern="\s*Total\s+Used\s+:.*" endPattern=".*" endOffset="0">    <record>\s*Total\s+Used\s+:\s+CPU=&#123;F,cc:cputime&#125;System=&#123;F,cc:systemtime&#125;Elapsed=&#123;F,cc:elapsedtime&#125;</record>    <transform process="pullup" repeat="3" xpath=".//cml:scalar" />
        </template>
        
    </templateList>
<transform process="delete" xpath=".//cml:list[count(*)=0]" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" />
<transform process="delete" xpath=".//cml:module[count(*)=0]" />