snakemake.benchmark.BenchmarkTimer

class snakemake.benchmark.BenchmarkTimer(pid, bench_record, interval=30)[source]

Allows easy observation of a given PID for resource usage

__init__(pid, bench_record, interval=30)[source]

Methods

__init__(pid, bench_record[, interval])

cancel()

Call to cancel any events

start()

Start the intervalic timer

work()

Write statistics

Attributes

pid

PID of observed process

bench_record

BenchmarkRecord to write results to

procs

Cache of processes to keep track of cpu percent