Unity Memory Profiler to csv
October 31, 2025 ยท View on GitHub
Unity Memory profiler is a powerful tool, but it lacks .csv export.
This is a direct copy of the com.unity.memoryprofiler (v 1.1.8) with a modified root file and additional script https://github.com/studentutu/unity-memoryprofiler-csv-export/blob/master/Packages/com.unity.memoryprofilercustom/Editor/Utilities/TableExportUtility.cs
Pre-requisites
- Install Memory Profiler package from Unity Package Manager (e.g. com.unity.memoryprofiler)
- Copy to local packages whole folder Library/PackageCache/com.unity.memoryprofiler package to root project folder ./Packages
- E.g. navigate to your project Library/PackageCache/com.unity.memoryprofiler
- paste folder to ./Packages (your project)
- Why? Unity keeps all scripts as internal visible to package itself, so in order to retrieve data from Memory Profiler, we need to modify package directly.
- Place script TableExportUtility inside Editor folder of the local package com.unity.memoryprofiler
- Change MemoryProfilerWindow.cs fields to be internal (m_SnapshotDataService, m_PlayerConnectionService, m_ProfilerViewController)
- Profit. Usage is descibed in How to use
If any new revision of memory profiler package is needed, just copy the file and make sure unity compilation is sucessfull. See https://github.com/studentutu/unity-memoryprofiler-csv-export/blob/master/Packages/com.unity.memoryprofilercustom/Editor/Utilities/TableExportUtility.cs
How to use
- Open Captured Snapshot in Memory profiler (chose Single Snapshot and open any snapshot)
- Use menu items inside editor "Window/Analysis/Memory Profiler Export/..." (it wil ask to point to the folder in which csv files will be exported)

- When choosing "All to CSV": it will export Summary/AllManaged/UnityObjects/Graphics into a given folder, sorted by the total used memory.
