Code cleanup - avoid copy 4/n

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk 2021-07-29 23:30:05 +00:00 committed by Compute-Runtime-Automation
parent dc2c810692
commit 6f25994c5e
1 changed files with 2 additions and 2 deletions

View File

@ -783,10 +783,10 @@ void AUBCommandStreamReceiverHw<GfxFamily>::dumpAllocation(GraphicsAllocation &g
template <typename GfxFamily>
AubSubCaptureStatus AUBCommandStreamReceiverHw<GfxFamily>::checkAndActivateAubSubCapture(const MultiDispatchInfo &dispatchInfo) {
std::string kernelName = dispatchInfo.peekMainKernel()->getKernelInfo().kernelDescriptor.kernelMetadata.kernelName;
auto &kernelName = dispatchInfo.peekMainKernel()->getKernelInfo().kernelDescriptor.kernelMetadata.kernelName;
auto status = subCaptureManager->checkAndActivateSubCapture(kernelName);
if (status.isActive) {
std::string subCaptureFile = subCaptureManager->getSubCaptureFileName(kernelName);
auto &subCaptureFile = subCaptureManager->getSubCaptureFileName(kernelName);
auto isReopened = reopenFile(subCaptureFile);
if (isReopened) {
dumpAubNonWritable = true;