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:
Mateusz Hoppe
2025-10-20 16:16:15 +00:00
committed by Compute-Runtime-Automation
parent c4c8f21b7f
commit 8d8404f59b
11 changed files with 35 additions and 8 deletions

View File

@@ -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;