Add debug variable to disable timestamp events

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga
2021-06-10 07:38:02 +00:00
committed by Compute-Runtime-Automation
parent e27d8a53a1
commit 6c84c0407b
4 changed files with 40 additions and 0 deletions

View File

@@ -159,6 +159,9 @@ struct EventPool : _ze_event_pool_handle_t {
virtual uint32_t getEventSize() = 0;
bool isEventPoolTimestampFlagSet() {
if (NEO::DebugManager.flags.DisableTimestampEvents.get()) {
return false;
}
if (eventPoolFlags & ZE_EVENT_POOL_FLAG_KERNEL_TIMESTAMP) {
return true;
}