mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
Add Debug Tracing in Dawn
Add more trace event in Dawn to better understand workflow in Dawn. These trace events focus on tick() and MapAsync() related in flight task. Bug: dawn:1335 Change-Id: Iac35959f315c221c8539137efbf35039458a6f77 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86620 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Shaobo Yan <shaobo.yan@intel.com>
This commit is contained in:
@@ -1158,6 +1158,10 @@ namespace dawn::native {
|
||||
if (IsLost() || ConsumedError(Tick())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
TRACE_EVENT1(GetPlatform(), General, "DeviceBase::APITick::IsDeviceIdle", "isDeviceIdle",
|
||||
IsDeviceIdle());
|
||||
|
||||
return !IsDeviceIdle();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user