This commit is contained in:
2026-08-15 19:58:39 +08:00
parent 8bfaeeb265
commit 26bbc29a16
29 changed files with 622 additions and 201 deletions
@@ -440,6 +440,8 @@ public:
[[nodiscard]] std::string telemetry_json() const override {
const auto status = scene_.frame_status();
const auto now = std::chrono::steady_clock::now();
const auto scene_execution = scene_.render_scene().execution_statistics();
const auto runtime = scene_.runtime_statistics();
return nlohmann::json{
{"kernel_observer",
{{"mode", mode_id(frame_mode_)},
@@ -464,6 +466,29 @@ public:
client_performance_.websocket_buffered_bytes}}},
{"scheduler", adminive::to_frontend_json<nlohmann::json>(
renderive::scheduling::scheduler_statistics())},
{"queue_pressure",
{{"scene_execution",
{{"capacity", scene_execution.capacity},
{"queued", scene_execution.queued},
{"peak_queued", scene_execution.peak_queued},
{"backpressure_count", scene_execution.backpressure_count},
{"backpressure_wait_ns", scene_execution.backpressure_wait_ns}}},
{"render_domain",
{{"capacity", runtime.render_domain.capacity},
{"active", runtime.render_domain.active},
{"peak_active", runtime.render_domain.peak_active},
{"queued", runtime.render_domain.queued},
{"peak_queued", runtime.render_domain.peak_queued},
{"backpressure_count", runtime.render_domain.backpressure_count},
{"backpressure_wait_ns", runtime.render_domain.backpressure_wait_ns}}},
{"gpu_completion",
{{"capacity", runtime.gpu_completion.capacity},
{"active", runtime.gpu_completion.active},
{"peak_active", runtime.gpu_completion.peak_active},
{"queued", runtime.gpu_completion.queued},
{"peak_queued", runtime.gpu_completion.peak_queued},
{"backpressure_count", runtime.gpu_completion.backpressure_count},
{"backpressure_wait_ns", runtime.gpu_completion.backpressure_wait_ns}}}}},
{"session_id", session_id_},
{"performance_capture",
gallery_performance_capture_json(scene_.render_scene())},