mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
performance: improve performance by caching debugger object
- Device::getDebugger() does not reference rootDeviceEnvironment Resolves: GSD-11858 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c4c8f21b7f
commit
8d8404f59b
@@ -140,6 +140,7 @@ class Device : public ReferenceTrackedObject<Device>, NEO::NonCopyableAndNonMova
|
||||
PreemptionMode getPreemptionMode() const { return preemptionMode; }
|
||||
void overridePreemptionMode(PreemptionMode mode) { preemptionMode = mode; }
|
||||
Debugger *getDebugger() const;
|
||||
void setDebugger(Debugger *debugger);
|
||||
DebuggerL0 *getL0Debugger();
|
||||
const EnginesT &getAllEngines() const;
|
||||
const std::string getDeviceName() const;
|
||||
@@ -357,6 +358,7 @@ class Device : public ReferenceTrackedObject<Device>, NEO::NonCopyableAndNonMova
|
||||
DeviceBitfield deviceBitfield = 1;
|
||||
|
||||
uintptr_t specializedDevice = reinterpret_cast<uintptr_t>(nullptr);
|
||||
Debugger *debugger = nullptr;
|
||||
|
||||
GraphicsAllocation *rtMemoryBackedBuffer = nullptr;
|
||||
std::vector<RTDispatchGlobalsInfo *> rtDispatchGlobalsInfos;
|
||||
|
||||
Reference in New Issue
Block a user