summaryrefslogtreecommitdiffstats
path: root/Whisper/Utils/GpuProfilerSimple.h
blob: e4fba8dd527fa753354515fe93e01d81657bc513 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once
#include "../D3D/device.h"
#include "DelayExecution.h"

namespace DirectCompute
{
	// A simple profiler which doesn't collect anything, used to measure time it took to load the model
	class GpuProfilerSimple
	{
		DelayExecution delay;
		CComPtr<ID3D11Query> disjoint, begin, end;
	public:
		HRESULT create();
		HRESULT time( uint64_t& rdi ) const;
	};
}