Professional Documents
Culture Documents
COVID-19 Support:
We’re providing all users three months of complimentary access to Unity Learn Premium, from
March 19 to June 20, 2020.
Projects
Courses
Tutorials
Learn Live
Topics
Premium
Tutorial
Working with the Memory Profiler - 2019.3
1
1.Introduction
If you are using Unity 2019.2 or below, click here.
The Memory Profiler allows you to analyze a project’s memory usage to find leaks and
fragmentation. Memory leaks can occur when memory is allocated but not deallocated after it’s no
longer needed. Program performance worsens as memory runs out, eventually leading to the
program (and potentially even the host device) crashing. When memory is allocated in many small
chunks, rather than fewer large contiguous chunks, it’s known as memory fragmentation. This
causes the small spans of unallocated memory between the allocated blocks to become unavailable
for use.
Figure 02: The Memory Profiler can target a local or networked development build, the Unity
Editor, or a memory snapshot from the Bitbucket Profiler.
Figure 07: The table view, which sits below both the Tree Map and Memory Map, gives more
detailed information on the memory usage of individual elements.
A more direct view, the Memory Map, shows the memory layout, with different colors representing
different types of memory (Figure 08). This can be helpful for locating memory fragmentation.
Figure 08: The Memory Map is a more direct representation of the virtual memory layout of your
project.
7.Conclusion
The Memory Profiler is a great way to audit your project’s memory usage. Not only can you see
what’s consuming the most memory, but also the way your project is using or misusing memory.
Memory leaks and fragmentation are two of the most common issues that impact project
performance, and the Memory Profiler makes troubleshooting these issues easy.
Working with the Memory Profiler - 2019.3
General Tutorial Discussion
0
0
1. Introduction
0
0
2. Installing the Memory Profiler
0
0
3. Capturing a Memory Snapshot
0
0
4. Importing a Captured Memory Snapshot
0
0
5. Viewing a Memory Snapshot
0
0
6. Finding a Memory Leak
0
1
7. Conclusion
0
0
Copyright © 2020 Unity Technologies
Legal
Privacy Policy
Cookies
Language:
English
简体中文
한국어
日本語
Русский
Español
Français
Deutsch
Português