API Reference
This page is the human-first API guide for the package. The canonical function and class signatures are generated from source code and docstrings during the docs build.
Install the distribution as stormlog, then import the Python APIs from
stormlog or stormlog.tensorflow.
Generated Reference
The pages under docs/reference/generated/ are build output, not hand-maintained source files.
Package Surface
stormlog.tensorflow (TensorFlow workflows)
Use this package for:
TensorFlow memory profiling and context instrumentation
Tracking, analysis, and diagnose flows for TF workloads
Core modules documented in generated pages:
stormlog.tensorflowstormlog.tensorflow.profilerstormlog.tensorflow.trackerstormlog.tensorflow.context_profiler
Primary exported symbols:
TFMemoryProfilerTensorFlowProfilerTensorFlowMemoryTrackerTensorFlowVisualizerTensorFlowAnalyzerTensorFlowGapFinding
stormlog.jax (JAX workflows)
Use this package for:
JAX memory profiling, XLA compilation tracking, and context instrumentation
Tracking, analysis, and diagnose flows for JAX workloads on CUDA, TPU, and CPU
Core modules documented in generated pages:
stormlog.jaxstormlog.jax.profilerstormlog.jax.trackerstormlog.jax.context_profilerstormlog.jax.analyzer
Primary exported symbols:
JAXMemoryProfilerJAXProfilerMemoryTrackerMemoryAnalyzerMemoryVisualizerprofile_functionprofile_context
JAX snapshots and profile results retain numeric fields for compatibility.
MemorySnapshot and ProfileResult expose device_memory_available and
device_memory_unavailable_reason. TrackingResult additionally exposes
memory_source and process_memory_bytes. Consumers must check
device_memory_available before interpreting a numeric device-memory value as
a measurement.
JAXProfiler.profile_training accepts re-iterable datasets, finite one-shot
iterators, and zero-argument dataset factories. Use a factory for streaming
multi-epoch inputs, and combine large or infinite streams with
steps_per_epoch. Callable objects that are already iterable are iterated
directly; wrap them in a zero-argument callable to force factory behavior.
JAX Result Units
stormlog.jax.profiler.ProfileResult.memory_growth_rate reports memory growth
in MB/second.
Stormlog versions before 0.3.6 reported this property in bytes/second;
0.3.6 and later report MB/second.
Usage Paths
For task-oriented guidance: