Module performance

Module performance 

Source
Expand description

Performance Mode API handlers

Provides HTTP endpoints for performance mode:

  • Start/stop performance simulation
  • Configure RPS profiles
  • Add/remove bottlenecks
  • Get performance metrics and snapshots

Structs§

AddBottleneckRequest
Request to add bottleneck
PerformanceResponse
Response for performance operations
PerformanceState
State for performance mode handlers
StartPerformanceRequest
Request to start performance mode
UpdateRpsRequest
Request to update RPS

Functions§

add_bottleneck
Add bottleneck POST /api/performance/bottlenecks
clear_bottlenecks
Remove all bottlenecks DELETE /api/performance/bottlenecks
get_performance_snapshot
Get current performance snapshot GET /api/performance/snapshot
get_performance_status
Get performance status GET /api/performance/status
performance_router
Create the Axum router for performance mode API
start_performance
Start performance mode POST /api/performance/start
stop_performance
Stop performance mode POST /api/performance/stop
update_rps
Update target RPS POST /api/performance/rps