Ark Server API (ASA) - Wiki
|
#include <MallocDoubleFreeFinder.h>
Classes | |
struct | TrackedAllocationData |
Static Public Member Functions | |
static FMalloc * | OverrideIfEnabled (FMalloc *InUsedAlloc) |
Protected Member Functions | |
virtual void | TrackMalloc (void *Ptr, uint32 Size, int32 CallStackIndex) |
virtual void | TrackFree (void *Ptr, uint32 OldSize, int32 CallStackIndex) |
Protected Member Functions inherited from FMallocCallstackHandler | |
FORCEINLINE void | IncDisabled () |
FORCEINLINE void | DecDisabled () |
virtual bool | IsDisabled () |
virtual void | TrackRealloc (void *OldPtr, void *NewPtr, uint32 NewSize, uint32 OldSize, int32 CallStackIndex) |
virtual int32 | GetCallStackIndex () |
Protected Member Functions inherited from FExec | |
virtual bool | Exec_Dev (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) |
virtual bool | Exec_Editor (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) |
Protected Attributes | |
TMap< const void *const, TrackedAllocationData > | TrackedCurrentAllocations |
TMap< const void *const, TrackedAllocationData > | TrackedFreeAllocations |
Protected Attributes inherited from FMallocCallstackHandler | |
FMalloc * | UsedMalloc |
bool | Initialized |
FCriticalSection | CriticalSection |
uint32 | DisabledTLS |
FRWLock | RWLock |
TMap< FCallStackMapKey, int32 > | CallStackMapKeyToCallStackIndexMap |
TArray< FCallStackInfo > | CallStackInfoArray |
Additional Inherited Members | |
Static Public Attributes inherited from FMallocCallstackHandler | |
static constexpr SIZE_T | MaxCallStackDepth = 64 |
static constexpr SIZE_T | CallStackEntriesToSkipCount = 2 |
Static Public Attributes inherited from FMalloc | |
static TAtomic< uint64 > | MaxSingleAlloc |
Definition at line 13 of file MallocDoubleFreeFinder.h.
FMallocDoubleFreeFinder::FMallocDoubleFreeFinder | ( | FMalloc * | InMalloc | ) |
|
overridevirtual |
Handles any commands passed in on the command line
Reimplemented from FExec.
Reimplemented from FMallocCallstackHandler.
|
protectedvirtual |
Implements FMallocCallstackHandler.
|
protectedvirtual |
Implements FMallocCallstackHandler.
If you get an allocation/memory error outside of the allocator you can call this directly It will dump a callstack of the last allocator free most likely to have caused the problem to the log, if you have symbols loaded Might be useful to pass an access violation ptr to this!
|
protected |
Definition at line 58 of file MallocDoubleFreeFinder.h.
|
protected |
Definition at line 59 of file MallocDoubleFreeFinder.h.