# NativeAllocations

> Specifies that the Native Memory used by any Native Allocation made by Unity should be captured.

## Definition

* **Type:** Field
* **Namespace:** [Unity.Profiling.Memory](/engine/6000.3/script-reference/unity/profiling/memory.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
NativeAllocations = 4
```

### Remarks

This information allows the Memory Profiler to show not just the native size of Unity Objects, but also their graphics sizes. Additionally, this also includes information on native memory used by Unity's different subsystems, allocations made via [UnsafeUtility.Malloc](/engine/6000.3/script-reference/unity/collections/lowlevel/unsafe/unsafeutility/malloc.md), [NativeArray\<T>](/engine/6000.3/script-reference/unity/collections/nativearray1.md) or other native collections, as well as how much memory is used by Unity's different [native allocators](/engine/6000.3/manual/analysis/performance-memory/native-memory/allocators.md) and how much is just reserved. Without this flag, there will be no data recorded for [CaptureFlags.NativeAllocationSites](/engine/6000.3/script-reference/unity/profiling/memory/captureflags/nativeallocationsites.md) or [CaptureFlags.NativeStackTraces](/engine/6000.3/script-reference/unity/profiling/memory/captureflags/nativestacktraces.md) either as it is reported in relation to each native alloation.

Corresponds to the NativeAllocations, NativeMemoryRegions, NativeRootReferences, and NativeMemoryLabels fields in a Memory Snapshot.
