File tree Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Expand file tree Collapse file tree 3 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -139,13 +139,6 @@ export default {
139
139
allowZeros: false ,
140
140
timingOption: this .timingOption
141
141
},
142
- {
143
- title: ` Std Dev ${ times} ` ,
144
- key: ` ${ formatHeader (' stdDev' , times)} ` ,
145
- formatter: formatDuration,
146
- allowZeros: true ,
147
- timingOption: this .timingOption
148
- },
149
142
{
150
143
title: ` Min ${ times} ` ,
151
144
key: ` ${ formatHeader (' min' , times)} ` ,
@@ -191,6 +184,16 @@ export default {
191
184
timingOption: this .timingOption
192
185
})
193
186
}
187
+ // Don't show std dev for cpuTime or maxRss
188
+ if (this .timingOption !== ' cpuTime' && this .timingOption !== ' maxRss' ) {
189
+ timingHeaders .push ({
190
+ title: ` Std Dev ${ times} ` ,
191
+ key: ` ${ formatHeader (' stdDev' , times)} ` ,
192
+ formatter: formatDuration,
193
+ allowZeros: true ,
194
+ timingOption: this .timingOption
195
+ })
196
+ }
194
197
return this .headers .concat (timingHeaders)
195
198
}
196
199
},
Original file line number Diff line number Diff line change @@ -123,7 +123,8 @@ const jobFields = [
123
123
' queueTime' ,
124
124
' runTime' ,
125
125
' startedTime' ,
126
- ' maxRss'
126
+ ' maxRss' ,
127
+ ' cpuTime'
127
128
]
128
129
129
130
/** The one-off query which retrieves historical job timing statistics */
@@ -370,7 +371,7 @@ export default {
370
371
if (! value) {
371
372
return null
372
373
}
373
- const y = formatDuration (value, true )
374
+ const y = formatDuration (value, true , this . timingOption )
374
375
const platform = this .series [seriesIndex].data [dataPointIndex].platform
375
376
return ` ${ y} (${ platform} )`
376
377
}
Original file line number Diff line number Diff line change @@ -98,10 +98,11 @@ export function jobMessageOutputs (jobNode) {
98
98
* 00:00:00, rather than undefined
99
99
* @return {string= } Formatted duration
100
100
*/
101
- export function formatDuration ( value , allowZeros = false , timingOption = false ) {
102
- // Smaller number of seconds are formatted as HH:MM:SS
101
+ export function formatDuration ( value , allowZeros = false , timingOption = false ) {
102
+ // Times are formatted as HH:MM:SS
103
103
if ( timingOption === 'queue' || timingOption === 'total' || timingOption === 'run' || timingOption === 'cpuTime' ) {
104
104
if ( value || ( value === 0 && allowZeros === true ) ) {
105
+ // Convert CPU time to seconds
105
106
if ( timingOption === 'cpuTime' ) {
106
107
value = value / 1000
107
108
}
@@ -120,7 +121,7 @@ export function jobMessageOutputs (jobNode) {
120
121
':' + minutes . toString ( ) . padStart ( 2 , '0' ) +
121
122
':' + Math . round ( seconds ) . toString ( ) . padStart ( 2 , '0' )
122
123
}
123
- // Larger number means it's memory
124
+ // If memory value passed
124
125
} else if ( timingOption === 'maxRss' ) {
125
126
if ( value / 1024 < 5000 ) {
126
127
const kilobytes = value / 1024
You can’t perform that action at this time.
0 commit comments