Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
MallocBinned.h File Reference
#include "Containers/Array.h"
#include "CoreTypes.h"
#include "HAL/CriticalSection.h"
#include "HAL/LowLevelMemStats.h"
#include "HAL/LowLevelMemTracker.h"
#include "HAL/MallocJemalloc.h"
#include "HAL/MemoryBase.h"
#include "HAL/PlatformAtomics.h"
#include "Math/UnrealMathUtility.h"
#include "Stats/Stats.h"
#include "Stats/Stats2.h"
+ Include dependency graph for MallocBinned.h:

Go to the source code of this file.

Classes

class  FMallocBinned
 
struct  FMallocBinned::FPoolTable
 

Macros

#define MEM_TIME(st)
 
#define USE_INTERNAL_LOCKS
 
#define USE_OS_SMALL_BLOCK_ALLOC   PLATFORM_IOS
 
#define USE_OS_SMALL_BLOCK_GRAB_MEMORY_FROM_OS   (USE_OS_SMALL_BLOCK_ALLOC && PLATFORM_IOS && 0)
 
#define USE_FINE_GRAIN_LOCKS
 
#define BINNED_STAT   BINNED_STAT_TYPE
 
#define BINNED_INCREMENT_STATCOUNTER(counter)
 
#define BINNED_DECREMENT_STATCOUNTER(counter)
 
#define BINNED_ADD_STATCOUNTER(counter, value)
 
#define BINNED_PEAK_STATCOUNTER(PeakCounter, CompareVal)
 

Typedefs

typedef int32 BINNED_STAT_TYPE
 

Functions

 DECLARE_MEMORY_STAT_EXTERN (TEXT("Binned Os Current"), STAT_Binned_OsCurrent, STATGROUP_MemoryAllocator,)
 
 DECLARE_MEMORY_STAT_EXTERN (TEXT("Binned Os Peak"), STAT_Binned_OsPeak, STATGROUP_MemoryAllocator,)
 
 DECLARE_MEMORY_STAT_EXTERN (TEXT("Binned Waste Current"), STAT_Binned_WasteCurrent, STATGROUP_MemoryAllocator,)
 
 DECLARE_MEMORY_STAT_EXTERN (TEXT("Binned Waste Peak"), STAT_Binned_WastePeak, STATGROUP_MemoryAllocator,)
 
 DECLARE_MEMORY_STAT_EXTERN (TEXT("Binned Used Current"), STAT_Binned_UsedCurrent, STATGROUP_MemoryAllocator,)
 
 DECLARE_MEMORY_STAT_EXTERN (TEXT("Binned Used Peak"), STAT_Binned_UsedPeak, STATGROUP_MemoryAllocator,)
 
 DECLARE_DWORD_COUNTER_STAT_EXTERN (TEXT("Binned Current Allocs"), STAT_Binned_CurrentAllocs, STATGROUP_MemoryAllocator,)
 
 DECLARE_DWORD_COUNTER_STAT_EXTERN (TEXT("Binned Total Allocs"), STAT_Binned_TotalAllocs, STATGROUP_MemoryAllocator,)
 
 DECLARE_MEMORY_STAT_EXTERN (TEXT("Binned Slack Current"), STAT_Binned_SlackCurrent, STATGROUP_MemoryAllocator,)
 

Macro Definition Documentation

◆ BINNED_ADD_STATCOUNTER

#define BINNED_ADD_STATCOUNTER ( counter,
value )

Definition at line 92 of file MallocBinned.h.

◆ BINNED_DECREMENT_STATCOUNTER

#define BINNED_DECREMENT_STATCOUNTER ( counter)

Definition at line 91 of file MallocBinned.h.

◆ BINNED_INCREMENT_STATCOUNTER

#define BINNED_INCREMENT_STATCOUNTER ( counter)

Definition at line 90 of file MallocBinned.h.

◆ BINNED_PEAK_STATCOUNTER

#define BINNED_PEAK_STATCOUNTER ( PeakCounter,
CompareVal )

Definition at line 93 of file MallocBinned.h.

◆ BINNED_STAT

#define BINNED_STAT   BINNED_STAT_TYPE

Definition at line 89 of file MallocBinned.h.

◆ MEM_TIME

#define MEM_TIME ( st)

Definition at line 19 of file MallocBinned.h.

◆ USE_FINE_GRAIN_LOCKS

#define USE_FINE_GRAIN_LOCKS

Definition at line 54 of file MallocBinned.h.

◆ USE_INTERNAL_LOCKS

#define USE_INTERNAL_LOCKS

Definition at line 22 of file MallocBinned.h.

◆ USE_OS_SMALL_BLOCK_ALLOC

#define USE_OS_SMALL_BLOCK_ALLOC   PLATFORM_IOS

Definition at line 28 of file MallocBinned.h.

◆ USE_OS_SMALL_BLOCK_GRAB_MEMORY_FROM_OS

#define USE_OS_SMALL_BLOCK_GRAB_MEMORY_FROM_OS   (USE_OS_SMALL_BLOCK_ALLOC && PLATFORM_IOS && 0)

Definition at line 32 of file MallocBinned.h.

Typedef Documentation

◆ BINNED_STAT_TYPE

Definition at line 60 of file MallocBinned.h.

Function Documentation

◆ DECLARE_DWORD_COUNTER_STAT_EXTERN() [1/2]

DECLARE_DWORD_COUNTER_STAT_EXTERN ( TEXT("Binned Current Allocs") ,
STAT_Binned_CurrentAllocs ,
STATGROUP_MemoryAllocator  )

◆ DECLARE_DWORD_COUNTER_STAT_EXTERN() [2/2]

DECLARE_DWORD_COUNTER_STAT_EXTERN ( TEXT("Binned Total Allocs") ,
STAT_Binned_TotalAllocs ,
STATGROUP_MemoryAllocator  )

◆ DECLARE_MEMORY_STAT_EXTERN() [1/7]

DECLARE_MEMORY_STAT_EXTERN ( TEXT("Binned Os Current") ,
STAT_Binned_OsCurrent ,
STATGROUP_MemoryAllocator  )

Malloc binned allocator specific stats.

◆ DECLARE_MEMORY_STAT_EXTERN() [2/7]

DECLARE_MEMORY_STAT_EXTERN ( TEXT("Binned Os Peak") ,
STAT_Binned_OsPeak ,
STATGROUP_MemoryAllocator  )

◆ DECLARE_MEMORY_STAT_EXTERN() [3/7]

DECLARE_MEMORY_STAT_EXTERN ( TEXT("Binned Slack Current") ,
STAT_Binned_SlackCurrent ,
STATGROUP_MemoryAllocator  )

◆ DECLARE_MEMORY_STAT_EXTERN() [4/7]

DECLARE_MEMORY_STAT_EXTERN ( TEXT("Binned Used Current") ,
STAT_Binned_UsedCurrent ,
STATGROUP_MemoryAllocator  )

◆ DECLARE_MEMORY_STAT_EXTERN() [5/7]

DECLARE_MEMORY_STAT_EXTERN ( TEXT("Binned Used Peak") ,
STAT_Binned_UsedPeak ,
STATGROUP_MemoryAllocator  )

◆ DECLARE_MEMORY_STAT_EXTERN() [6/7]

DECLARE_MEMORY_STAT_EXTERN ( TEXT("Binned Waste Current") ,
STAT_Binned_WasteCurrent ,
STATGROUP_MemoryAllocator  )

◆ DECLARE_MEMORY_STAT_EXTERN() [7/7]

DECLARE_MEMORY_STAT_EXTERN ( TEXT("Binned Waste Peak") ,
STAT_Binned_WastePeak ,
STATGROUP_MemoryAllocator  )