|
Terraria v1.4.4.9
Terraria source code documentation
|
Public Member Functions | |
| static int | GetGeneration (object obj) |
| static long | GetAllocatedBytesForCurrentThread () |
| static long | GetTotalAllocatedBytes (bool precise=false) |
Static Public Member Functions | |
| static GCMemoryInfo | GetGCMemoryInfo () |
| static GCMemoryInfo | GetGCMemoryInfo (GCKind kind) |
| static void | AddMemoryPressure (long bytesAllocated) |
| static void | RemoveMemoryPressure (long bytesAllocated) |
| static void | Collect (int generation) |
| static void | Collect () |
| static void | Collect (int generation, GCCollectionMode mode) |
| static void | Collect (int generation, GCCollectionMode mode, bool blocking) |
| static void | Collect (int generation, GCCollectionMode mode, bool blocking, bool compacting) |
| static int | CollectionCount (int generation) |
| static void | KeepAlive (object? obj) |
| static int | GetGeneration (WeakReference wo) |
| static void | WaitForPendingFinalizers () |
| static void | SuppressFinalize (object obj) |
| static void | ReRegisterForFinalize (object obj) |
| static long | GetTotalMemory (bool forceFullCollection) |
| static void | RegisterForFullGCNotification (int maxGenerationThreshold, int largeObjectHeapThreshold) |
| static void | CancelFullGCNotification () |
| static GCNotificationStatus | WaitForFullGCApproach () |
| static GCNotificationStatus | WaitForFullGCApproach (int millisecondsTimeout) |
| static GCNotificationStatus | WaitForFullGCComplete () |
| static GCNotificationStatus | WaitForFullGCComplete (int millisecondsTimeout) |
| static bool | TryStartNoGCRegion (long totalSize) |
| static bool | TryStartNoGCRegion (long totalSize, long lohSize) |
| static bool | TryStartNoGCRegion (long totalSize, bool disallowFullBlockingGC) |
| static bool | TryStartNoGCRegion (long totalSize, long lohSize, bool disallowFullBlockingGC) |
| static void | EndNoGCRegion () |
| static T[] | AllocateUninitializedArray< T > (int length, bool pinned=false) |
| static T[] | AllocateArray< T > (int length, bool pinned=false) |
Package Types | |
| enum | GC_ALLOC_FLAGS { GC_ALLOC_NO_FLAGS = 0 , GC_ALLOC_ZEROING_OPTIONAL = 0x10 , GC_ALLOC_PINNED_OBJECT_HEAP = 0x40 } |
Package Functions | |
| static int | _StartNoGCRegion (long totalSize, bool lohSizeKnown, long lohSize, bool disallowFullBlockingGC) |
| static int | _EndNoGCRegion () |
| static Array | AllocateNewArray (IntPtr typeHandle, int length, GC_ALLOC_FLAGS flags) |
| static ulong | GetSegmentSize () |
| static int | GetLastGCPercentTimeInGC () |
| static ulong | GetGenerationSize (int gen) |
Properties | |
| static int | MaxGeneration [get] |
Private Types | |
| enum | StartNoGCRegionStatus { Succeeded , NotEnoughMemory , AmountTooLarge , AlreadyInProgress } |
| enum | EndNoGCRegionStatus { Succeeded , NotInProgress , GCInduced , AllocationExceeded } |
Private Member Functions | |
| static void | GetMemoryInfo (GCMemoryInfoData data, int kind) |
| static int | GetGenerationWR (IntPtr handle) |
| static long | GetTotalMemory () |
| static void | _Collect (int generation, int mode) |
| static int | GetMaxGeneration () |
| static int | _CollectionCount (int generation, int getSpecialGCCount) |
| static void | _AddMemoryPressure (ulong bytesAllocated) |
| static void | _RemoveMemoryPressure (ulong bytesAllocated) |
| static void | _WaitForPendingFinalizers () |
| static void | _SuppressFinalize (object o) |
| static void | _ReRegisterForFinalize (object o) |
| static IntPtr | _RegisterFrozenSegment (IntPtr sectionAddress, nint sectionSize) |
| static void | _UnregisterFrozenSegment (IntPtr segmentHandle) |
| static bool | _RegisterForFullGCNotification (int maxGenerationPercentage, int largeObjectHeapPercentage) |
| static bool | _CancelFullGCNotification () |
| static int | _WaitForFullGCApproach (int millisecondsTimeout) |
| static int | _WaitForFullGCComplete (int millisecondsTimeout) |
Static Private Member Functions | |
| static bool | StartNoGCRegionWorker (long totalSize, bool hasLohSize, long lohSize, bool disallowFullBlockingGC) |