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:
Shaobo
2022-04-19 00:25:34 +00:00
committed by Dawn LUCI CQ
parent c373a87542
commit e4c799071b
8 changed files with 40 additions and 8 deletions

View File

@@ -1158,6 +1158,10 @@ namespace dawn::native {
if (IsLost() || ConsumedError(Tick())) {
return false;
}
TRACE_EVENT1(GetPlatform(), General, "DeviceBase::APITick::IsDeviceIdle", "isDeviceIdle",
IsDeviceIdle());
return !IsDeviceIdle();
}