mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
Signed-off-by: Piotr Maciejewski <piotr.maciejewski@intel.com> Change-Id: I0f00dca1892f4857baaebc75ba2208a4f33db1bf
32 lines
832 B
C++
32 lines
832 B
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "runtime/event/hw_timestamps.h"
|
|
#include "runtime/memory_manager/graphics_allocation.h"
|
|
|
|
namespace NEO {
|
|
|
|
struct HwPerfCounter {
|
|
void initialize() {
|
|
report[0] = 0;
|
|
}
|
|
|
|
static GraphicsAllocation::AllocationType getAllocationType() {
|
|
return GraphicsAllocation::AllocationType::PROFILING_TAG_BUFFER;
|
|
}
|
|
bool canBeReleased() const { return true; }
|
|
|
|
// Gpu report size is not known during compile time.
|
|
// Such information will be provided by metrics library dll.
|
|
// Bellow variable will be allocated dynamically based on information
|
|
// from metrics library. Take look at CommandStreamReceiver::getEventPerfCountAllocator.
|
|
uint8_t report[1] = {};
|
|
};
|
|
} // namespace NEO
|