SWDEV-351980 - Consolidate registration tables in the roctracer library
Remove the activity_prof::CallbacksTable. The table was redundant with the information already stored in the roctracer library. Instead use a single callback into the roctracer library to query whether the activity is enabled, and to report it. Change-Id: I2e05b0881bb4a1953c14361d00ea310d02eb6e0c
Цей коміт міститься в:
зафіксовано
Maneesh Gupta
джерело
e713b5c7d0
коміт
52eb28930a
@@ -162,8 +162,7 @@ bool Event::setStatus(int32_t status, uint64_t timeStamp) {
|
||||
releaseResources();
|
||||
}
|
||||
|
||||
if (profilingInfo().enabled_)
|
||||
activity_prof::CallbacksTable::reportActivity(command());
|
||||
if (profilingInfo().enabled_) activity_prof::ReportActivity(command());
|
||||
|
||||
// Broadcast all the waiters.
|
||||
if (referenceCount() > 1) {
|
||||
@@ -313,9 +312,8 @@ const Event::EventWaitList Event::nullWaitList(0);
|
||||
// ================================================================================================
|
||||
Command::Command(HostQueue& queue, cl_command_type type,
|
||||
const EventWaitList& eventWaitList, uint32_t commandWaitBits, const Event* waitingEvent)
|
||||
: Event(queue, activity_prof::CallbacksTable::isEnabled(activity_prof::operationId(type)) ||
|
||||
queue.properties().test(CL_QUEUE_PROFILING_ENABLE) ||
|
||||
Agent::shouldPostEventEvents()),
|
||||
: Event(queue, activity_prof::IsEnabled(activity_prof::OperationId(type)) ||
|
||||
queue.properties().test(CL_QUEUE_PROFILING_ENABLE) || Agent::shouldPostEventEvents()),
|
||||
queue_(&queue),
|
||||
next_(nullptr),
|
||||
type_(type),
|
||||
|
||||
Посилання в новій задачі
Заблокувати користувача