Skip to content

src/dazzle_back/pra/generator.py

Generated: 2026-03-30T04:38:46.526764+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Load generator for PRA stress testing.

Orchestrates load generation according to load profiles, using data factories to create synthetic payloads.

Key Exports

  • GeneratorConfig
  • GeneratorStats
  • LoadGenerator
  • run_load_test
  • total_generated
  • stats
  • is_running
  • start
  • stop
  • get_current_state

Dependencies

Imports

  • __future__.annotations
  • asyncio
  • logging
  • time
  • collections.abc.Callable
  • dataclasses.dataclass
  • dataclasses.field
  • datetime.UTC
  • datetime.datetime
  • typing.Any
  • uuid.UUID
  • dazzle_back.events.envelope.EventEnvelope
  • dazzle_back.metrics.MetricsCollector
  • data_factory.PRADataFactory
  • hot_keys.create_pareto_selector
  • profiles.LoadProfile
  • profiles.LoadState
  • profiles.SteadyRampProfile
  • random
  • random

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/llm/test_dsl_generator.py
  • tests/unit/test_pitch_generator.py
  • tests/unit/test_dsl_test_generator_surfaces.py
  • tests/unit/test_testspec_generator.py
  • tests/unit/test_dsl_test_generator_fk.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.