Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Nov 26, 2021
1 parent 91e8fc0 commit 290d90a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions snakemake/benchmark.py
Expand Up @@ -191,6 +191,7 @@ class BenchmarkTimer(ScheduledPeriodicTimer):

def __init__(self, pid, bench_record, interval=BENCHMARK_INTERVAL):
import psutil

ScheduledPeriodicTimer.__init__(self, interval)
#: PID of observed process
self.pid = pid
Expand All @@ -203,6 +204,7 @@ def __init__(self, pid, bench_record, interval=BENCHMARK_INTERVAL):
def work(self):
"""Write statistics"""
import psutil

try:
self._update_record()
except psutil.NoSuchProcess:
Expand All @@ -213,6 +215,7 @@ def work(self):
def _update_record(self):
"""Perform the actual measurement"""
import psutil

# Memory measurements
rss, vms, uss, pss = 0, 0, 0, 0
# I/O measurements
Expand Down

0 comments on commit 290d90a

Please sign in to comment.