mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 15:53:13 +08:00
Metrics Library Performance Counters implementation.
Signed-off-by: Piotr Maciejewski <piotr.maciejewski@intel.com> Change-Id: I0f00dca1892f4857baaebc75ba2208a4f33db1bf
This commit is contained in:
committed by
sys_ocldev
parent
369982995d
commit
d1d794c658
@@ -12,8 +12,6 @@
|
||||
#include "runtime/helpers/engine_control.h"
|
||||
#include "runtime/helpers/task_information.h"
|
||||
|
||||
#include "instrumentation.h"
|
||||
|
||||
#include <atomic>
|
||||
#include <cstdint>
|
||||
|
||||
@@ -374,24 +372,14 @@ class CommandQueue : public BaseObject<_cl_command_queue> {
|
||||
return perfCountersEnabled;
|
||||
}
|
||||
|
||||
InstrPmRegsCfg *getPerfCountersConfigData() {
|
||||
return perfConfigurationData;
|
||||
}
|
||||
|
||||
PerformanceCounters *getPerfCounters();
|
||||
|
||||
bool sendPerfCountersConfig();
|
||||
|
||||
bool setPerfCountersEnabled(bool perfCountersEnabled, cl_uint configuration);
|
||||
|
||||
void setIsSpecialCommandQueue(bool newValue) {
|
||||
this->isSpecialCommandQueue = newValue;
|
||||
}
|
||||
|
||||
uint16_t getPerfCountersUserRegistersNumber() const {
|
||||
return perfCountersUserRegistersNumber;
|
||||
}
|
||||
|
||||
QueuePriority getPriority() const {
|
||||
return priority;
|
||||
}
|
||||
@@ -462,11 +450,6 @@ class CommandQueue : public BaseObject<_cl_command_queue> {
|
||||
QueueThrottle throttle = QueueThrottle::MEDIUM;
|
||||
|
||||
bool perfCountersEnabled = false;
|
||||
cl_uint perfCountersConfig = std::numeric_limits<uint32_t>::max();
|
||||
uint32_t perfCountersUserRegistersNumber = 0;
|
||||
InstrPmRegsCfg *perfConfigurationData = nullptr;
|
||||
uint32_t perfCountersRegsCfgHandle = 0;
|
||||
bool perfCountersRegsCfgPending = false;
|
||||
|
||||
LinearStream *commandStream = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user