MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / DebugCapture

Method DebugCapture

layers/sync/sync_validation.cpp:55–69  ·  view source on GitHub ↗

Location to add per-queue submit debug info if built with -D DEBUG_CAPTURE_KEYBOARD=ON.

Source from the content-addressed store, hash-verified

53
54// Location to add per-queue submit debug info if built with -D DEBUG_CAPTURE_KEYBOARD=ON.
55void SyncValidator::DebugCapture() {
56 if (report_stats_) {
57 stats.UpdateAccessStats(*this);
58
59 // NOTE: mimalloc stats are not updated here - mostly because they are tracked
60 // per thread and updating stats only for current thread feels a bit unbalanced.
61 // Instead we have specific places to trigger memory stats collection.
62
63 const std::string report = stats.CreateReport();
64 std::cout << report;
65#ifdef VK_USE_PLATFORM_WIN32_KHR
66 OutputDebugString(report.c_str());
67#endif
68 }
69}
70
71bool SyncValidator::SyncError(SyncHazard hazard, const LogObjectList& objlist, const Location& loc,
72 const std::string& error_message) const {

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.80
UpdateAccessStatsMethod · 0.45
CreateReportMethod · 0.45

Tested by

no test coverage detected