# OnSnapshotReceived

> Event that will be fired when a new memory snapshot comes in through the profiler connection. Its argument will be a PackedMemorySnapshot.

## Definition

* **Type:** Event
* **Namespace:** [UnityEditor.MemoryProfiler](/engine/6000.7/script-reference/unityeditor/memoryprofiler.md)
* **Assembly:** UnityEditor.CoreModule

> **Warning:**
>
> **Deprecated.** Use Unity.Profiling.Memory.MemoryProfiler.TakeSnapshot() instead

```csharp
public static event Action<PackedMemorySnapshot> OnSnapshotReceived
```
