timing ​
Implementation level ​
| Type | Status |
|---|---|
| CML extraction template | |
| HTML5 representation |
Template attributes ​
| Attribute | Value |
|---|---|
| source | CP2K log |
| id | timing |
| name | Timings |
| pattern | \s*-\s{10,}T I M I N G\s{10,}- |
| endPattern | \s+CP2K\s+\d+\s+.* |
| endOffset | 1 |
| repeat | * |
| keep | last |
| xml:base | environment/timing.xml |
Input
- -
-------------------------------------------------------------------------------
SUBROUTINE CALLS ASD SELF TIME TOTAL TIME
MAXIMUM AVERAGE MAXIMUM AVERAGE MAXIMUM
CP2K 1 1.0 0.014 0.018 6.350 6.351
qs_energies 1 2.0 0.000 0.000 6.159 6.159
Output text
xml
<comment class="example.output" id="timing">
<module cmlx:templateRef="timing">
<list cmlx:templateRef="total">
<list>
<scalar dataType="xsd:double" dictRef="cp2k:cpuTime" units="si:s">6.350</scalar>
<scalar dataType="xsd:double" dictRef="cp2k:cpuTimeMax" units="si:s">6.351</scalar>
</list>
</list>
</module>
</comment>Template definition
xml
<record id="total">\s+CP2K\s+\d+\s+\S+\s+\S+\s+\S+\s+{E,cp2k:cpuTime}\s+{E,cp2k:cpuTimeMax}\s*</record>
<transform process="addUnits" xpath=".//cml:scalar" value="si:s" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" repeat="2" />