brain_deer.utils.load_timing

Env-gated load / rebuild timing for large-file stress recipes.

Enable with BRAIN_DEER_LOAD_TIMING=1. Optional RSS via psutil when available.

Stress recipes (manual):
  1. One large NIfTI (e.g. high-res T1 or 4D) — note open + rebuild_layers ms and RSS.

  2. Many tracts / atlas subfiles — note load_tractogram + rebuild + final Render ms.

Functions

timed_load(→ Iterator[None])

Log wall time (and RSS delta when possible) for phase if timing is enabled.

Module Contents

brain_deer.utils.load_timing.timed_load(phase: str, **extra: object) → Iterator[None]

Log wall time (and RSS delta when possible) for phase if timing is enabled.