Location to add per-queue submit debug info if built with -D DEBUG_CAPTURE_KEYBOARD=ON.
| 53 | |
| 54 | // Location to add per-queue submit debug info if built with -D DEBUG_CAPTURE_KEYBOARD=ON. |
| 55 | void 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 | |
| 71 | bool SyncValidator::SyncError(SyncHazard hazard, const LogObjectList& objlist, const Location& loc, |
| 72 | const std::string& error_message) const { |
nothing calls this directly
no test coverage detected