Files
mir_server/server/LogicServer/base/BuffAllocStatHelper.h
aixianling 5c9f1dae4a init
2025-01-09 17:45:40 +08:00

24 lines
789 B
C++

#pragma once
class CBufferAllocator;
class CBuffAllocStatHelper
{
public:
static void WriteStrToStream(wylib::stream::CBaseStream& stream, LPCTSTR szContent);
static void Dump(wylib::stream::CBaseStream& stream,
CBufferAllocator* pAlloc,
LPCTSTR szAllocaterName = _T("Unknown"),
bool bIncTimeStamp = true);
static void Dump(wylib::stream::CBaseStream& stream,
CBufferAllocator::ALLOCATOR_MEMORY_INFO& mi,
LPCTSTR szAllocaterName = _T("Unknown"),
bool bIncTimeStamp = true);
protected:
static void DumpHeader(wylib::stream::CBaseStream& stream, LPCTSTR szAllocatorName, bool bIncTimeStamp = true);
static void DumpImpl(wylib::stream::CBaseStream& stream, CBufferAllocator::ALLOCATOR_MEMORY_INFO& mi);
private:
static LPCTSTR s_szLineFeed;
};