SWDEV-351980 - Enable profiling for commands reporting activities

Profiling should be enabled for any command reporting activities as the
activity record captures the profilingInfo's start and end timestamps.

Since IS_PROFILER_ON is only used to determine whether API tracing is
enabled, there is no need to expose it globally, it should be a property
of the activity_prof::CallbacksTable.

Change-Id: I44a0d19ed2862606cfbc9a98c1a07a336ab7e26c
这个提交包含在:
Laurent Morichetti 编写, Maneesh Gupta 于 2022-09-21 05:53:59 -04:00 提交
1 父节点 4fbae91468
当前提交 e713b5c7d0
4 个文件已更改
+7 -7

没有与搜索条件相匹配的文件

+1 -1
查看文件
@@ -143,7 +143,7 @@ class Event : public RuntimeObject {
Event();
//! Construct a new event associated to the given command \a queue.
Event(HostQueue& queue);
Event(HostQueue& queue, bool profilingEnabled = false);
//! Destroy the event.
virtual ~Event();