snakemake.benchmark

Module Attributes

BENCHMARK_INTERVAL

Interval (in seconds) between measuring resource usage

BENCHMARK_INTERVAL_SHORT

Interval (in seconds) between measuring resource usage before BENCHMARK_INTERVAL

Functions

benchmarked([pid, benchmark_record, interval])

Measure benchmark parameters while within the context manager

print_benchmark_records(records, file_)

Write benchmark records to file-like the object

write_benchmark_records(records, path)

Write benchmark records to file at path

Classes

BenchmarkRecord([running_time, max_rss, ...])

Record type for benchmark times

BenchmarkTimer(pid, bench_record[, interval])

Allows easy observation of a given PID for resource usage

DaemonTimer(interval, function[, args, kwargs])

A variant of threading.The timer that is daemonized

ScheduledPeriodicTimer(interval)

Scheduling of periodic events