Skip to content

Commit 1d56a67

Browse files
author
Theofilos Manitaras
committed
Use new performance syntax
1 parent ddd059e commit 1d56a67

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cscs-checks/apps/greasy/greasy_check.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def num_ranks(match):
235235
return True
236236

237237
@run_before('performance')
238-
def set_perf_patterns(self):
238+
def set_reference(self):
239239
# Reference value is system agnostic
240240
# Adding 10 secs of slowdown per greasy tasks
241241
# this is to compensate for whenever the systems are full and srun gets
@@ -249,8 +249,8 @@ def set_perf_patterns(self):
249249
'time': (refperf, None, 0.5, 's')
250250
}
251251
}
252-
self.perf_patterns = {
253-
'time': sn.extractsingle(r'Total time: (?P<perf>\S+)',
254-
self.greasy_logfile,
255-
'perf', to_seconds)
256-
}
252+
253+
@performance_function('s')
254+
def time(self):
255+
return sn.extractsingle(r'Total time: (?P<perf>\S+)',
256+
self.greasy_logfile, 'perf', to_seconds)

0 commit comments

Comments
 (0)