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
Dieser Commit ist enthalten in:
Laurent Morichetti verfasst und Maneesh Gupta committed 2022-09-21 05:53:59 -04:00
1 Ursprung 4fbae91468
Commit e713b5c7d0
4 Dateien geändert
+7 -7

Keine Dateien entsprechen Ihrer Suche

-1
Datei anzeigen
@@ -82,7 +82,6 @@ namespace amd {
#endif // __APPLE__
bool IS_HIP = false;
std::atomic_bool IS_PROFILER_ON(false);
#if !defined(_WIN32) && defined(WITH_PAL_DEVICE)
bool IS_LEGACY = true;
-1
Datei anzeigen
@@ -282,7 +282,6 @@ release(bool, ROC_EVENT_NO_FLUSH, false, \
namespace amd {
extern bool IS_HIP;
extern std::atomic_bool IS_PROFILER_ON;
extern bool IS_LEGACY;