This commit is contained in:
2026-08-16 00:07:05 +08:00
parent 7a94264c13
commit 893be8d2c6
21 changed files with 363 additions and 211 deletions
+1 -9
View File
@@ -157,12 +157,6 @@ inline Json execution_json(const Node_Execution& execution,
}
return {
{"node_id", execution.node_id},
{"ready_time_ns", execution.ready_time_ns},
{"start_time_ns", execution.start_time_ns},
{"cpu_end_time_ns", execution.cpu_end_time_ns},
{"external_start_time_ns", execution.external_start_time_ns},
{"external_end_time_ns", execution.external_end_time_ns},
{"end_time_ns", execution.end_time_ns},
{"start_offset_ns", execution.start_time_ns >= frame.render_start_ns
? execution.start_time_ns - frame.render_start_ns : 0},
{"cpu_end_offset_ns", execution.cpu_end_time_ns >= frame.render_start_ns
@@ -198,7 +192,7 @@ inline Json node_analysis_json(const Node_Frame_Analysis& node) {
{"gpu_execution_duration_ns", node.gpu_execution_duration_ns},
{"start_offset_ns", node.start_offset_ns},
{"end_offset_ns", node.end_offset_ns},
{"dependency_ready_time_ns", node.dependency_ready_time_ns},
{"dependency_ready_offset_ns", node.dependency_ready_offset_ns},
{"scheduler_wait_ns", node.scheduler_wait_ns},
{"work_contribution", node.work_contribution},
{"critical_path_contribution", node.critical_path_contribution},
@@ -222,8 +216,6 @@ inline Json frame_json(const Captured_Frame& frame) {
return {
{"frame_id", frame.snapshot->frame_id},
{"render_plan_version", frame.snapshot->render_plan_version},
{"render_start_ns", frame.snapshot->render_start_ns},
{"render_end_ns", frame.snapshot->render_end_ns},
{"render_duration_ns", frame.snapshot->render_duration_ns()},
{"node_executions", std::move(executions)},
{"analysis", {
+3 -1
View File
@@ -490,7 +490,9 @@ public:
{"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}}}}},
{"backpressure_wait_ns", runtime.gpu_completion.backpressure_wait_ns},
{"fault_count", runtime.gpu_completion_fault_count},
{"abandoned_count", runtime.gpu_completion_abandoned_count}}}}},
{"session_id", session_id_},
{"performance_capture",
gallery_performance_capture_json(scene_.render_scene())},