mirror of
https://github.com/vladmandic/automatic
synced 2026-08-29 16:41:01 +02:00
cleanup performance tags
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -49,6 +49,8 @@ class Timer:
|
||||
additions = [x for x in self.records.items() if x[1] >= min_time]
|
||||
if max_time > 0:
|
||||
additions = [x for x in additions if x[1] <= max_time]
|
||||
if not total:
|
||||
additions = [x for x in additions if x[0] != 'total']
|
||||
additions = sorted(additions, key=lambda x: x[1], reverse=True)
|
||||
if not additions:
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user