mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-09 06:00:15 +02:00
30 lines
661 B
C++
30 lines
661 B
C++
// SPDX-License-Identifier: MIT
|
|
#pragma once
|
|
|
|
#include "Common/Profiler.h"
|
|
|
|
namespace FEX::Windows {
|
|
class StatAlloc final : public FEX::Profiler::StatAllocBase {
|
|
public:
|
|
StatAlloc(FEXCore::Profiler::AppType AppType);
|
|
virtual ~StatAlloc();
|
|
|
|
FEXCore::Profiler::ThreadStats* AllocateSlot(uint32_t TID) {
|
|
return StatAllocBase::AllocateSlot(TID);
|
|
}
|
|
|
|
void DeallocateSlot(FEXCore::Profiler::ThreadStats* AllocatedSlot) {
|
|
if (!AllocatedSlot) {
|
|
return;
|
|
}
|
|
|
|
StatAllocBase::DeallocateSlot(AllocatedSlot);
|
|
}
|
|
|
|
private:
|
|
uint32_t FrontendAllocateSlots(uint32_t NewSize) override;
|
|
bool UsingNTQueryPath {};
|
|
};
|
|
|
|
} // namespace FEX::Windows
|