2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2019-02-08 10:27:48 +01:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "runtime/event/hw_timestamps.h"
|
2019-02-08 10:27:48 +01:00
|
|
|
#include "runtime/memory_manager/graphics_allocation.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2018-01-05 13:35:03 +01:00
|
|
|
#include "instrumentation.h"
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
|
struct HwPerfCounter {
|
2018-08-30 13:37:39 +02:00
|
|
|
void initialize() {
|
|
|
|
|
HWPerfCounters = {};
|
|
|
|
|
HWTimeStamp.initialize();
|
|
|
|
|
}
|
2019-02-08 10:27:48 +01:00
|
|
|
static GraphicsAllocation::AllocationType getAllocationType() {
|
|
|
|
|
return GraphicsAllocation::AllocationType::PROFILING_TAG_BUFFER;
|
|
|
|
|
}
|
2018-09-04 09:05:55 +02:00
|
|
|
bool canBeReleased() const { return true; }
|
2017-12-21 00:45:38 +01:00
|
|
|
HwPerfCounters HWPerfCounters;
|
|
|
|
|
HwTimeStamps HWTimeStamp;
|
|
|
|
|
};
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|