stormlog.infer.analysis

Analysis helpers for inference profiling artifacts.

Functions

analyze_inference_events(path, *[, ...])

Analyze an inference profiling JSONL artifact.

format_analysis_text(report)

Render an inference analysis report as text.

replaced_policies(report)

The recorded policies a report's own policy replaced, if it differs.

stormlog.infer.analysis.analyze_inference_events(path, *, server_telemetry_paths=(), direct_server=False, clock_offset_ns=None, clock_uncertainty_ns=None, vllm_span_paths=(), slo=None, slo_source='flags')[source]

Analyze an inference profiling JSONL artifact.

slo overrides the policy the artifact recorded, if it recorded one.

Parameters:
  • path (str | Path)

  • server_telemetry_paths (Iterable[str | Path])

  • direct_server (bool)

  • clock_offset_ns (int | None)

  • clock_uncertainty_ns (int | None)

  • vllm_span_paths (Iterable[str | Path])

  • slo (SloSpec | None)

  • slo_source (str)

Return type:

dict[str, Any]

stormlog.infer.analysis.replaced_policies(report)[source]

The recorded policies a report’s own policy replaced, if it differs.

Parameters:

report (dict[str, Any])

Return type:

list[dict[str, Any]]

stormlog.infer.analysis.format_analysis_text(report)[source]

Render an inference analysis report as text.

Parameters:

report (dict[str, Any])

Return type:

str