Separate internal Sample diagnostics

Compared with 83be436:

- move private backend, DMA, delivery, startup, and frame timing diagnostics into a dedicated InternalDiagnostics module

- keep the capture controller independent from gvfg_debug.h and private backend baseline structures

- compile the diagnostics module and diagnostic signal path only for Debug builds

- keep Release builds free of diagnostic collection and aligned with the customer-facing capture flow

Validation: git diff --check passed. MSVC Release and Debug clean builds completed successfully, and the updated Sample behavior was tested on hardware.
This commit is contained in:
Mark.lin
2026-09-21 15:24:59 +08:00
parent 83be436e71
commit 5ee2ee12e6
6 changed files with 313 additions and 126 deletions
+5
View File
@@ -93,6 +93,11 @@ set(GVFG_QT_PREVIEW_SOURCES
previewwindow.ui
)
list(APPEND GVFG_QT_PREVIEW_SOURCES
$<$<CONFIG:Debug>:${CMAKE_CURRENT_SOURCE_DIR}/internal_diagnostics.cpp>
$<$<CONFIG:Debug>:${CMAKE_CURRENT_SOURCE_DIR}/internal_diagnostics.h>
)
if (QT_VERSION_MAJOR GREATER_EQUAL 6)
qt_add_executable(gvfg_qt_preview ${GVFG_QT_PREVIEW_SOURCES})
else()