Files
FEX-Emu--FEX/Source/Windows/Common/Profiler.h
T
Ryan Houdek 602c530615 Wine: Add support for magic fex+wine shm path
Fallback to the previous path if it doesn't exist.
2025-02-11 13:42:45 -08:00

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