• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by Leepo 1 · Mar 15, 2011 at 11:38 AM · memoryprofilerprofile

Tools to profile memory usage

The unity 3(.3) profiler does not help me profile my scripts memory usage since it only shows the total memory usage. Furthermore, so far the (.NET) memory profiling tools I've tried all don't work for Unity games.

What tools can be used to profile memory usage?

Comment
Minthos
nschrag
rutter
BiG
yoyo

People who like this

5 Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image theschwartz · Apr 02, 2012 at 11:16 AM 0
Share

Also looking for a memory profile tool for Unity applications

avatar image Bunny83 · Apr 02, 2012 at 01:03 PM 1
Share

I'm not sure what you actually want the profiler to display. Every object has some kind of memory usage and that is its member variables. Referenced objects can't be count for a certain class instance since multiple instances can hold the same reference. So every object is on its own.

Most objects are placed on the heap and don't belong to the creator object. They just eats up memory but you can't refer to a specific Unity script which might have created the instance.

So what kind of view / display do you want / expect?

avatar image theschwartz · Apr 02, 2012 at 01:22 PM 2
Share

It would be nice to get a fragmented overview of the Unity application's memory usage. My company is having problems figuring out what the application's memory is used on. Our application uses 1.6GB and there is about 1GB we can't account for. Is it used on Unity assets, Mono objects or something totally different? It is hard for us find out easily.

avatar image Flownerous · Apr 25, 2012 at 09:54 AM 1
Share

Yeah it's always useful to be able to track each individual allocation and the call-stack when it was allocated. Currently seeing a 700 kB allocation every few seconds in my game but I have no way of profiling for it.

avatar image yoyo · Dec 18, 2012 at 05:41 AM 1
Share

Mono supports at least parts of the System.GC (garbage collector) interface, which might be helpful, though it won't tell you about unmanaged allocations inside the Unity engine. More details here -- http://msdn.microsoft.com/en-us/library/system.gc_members(v=vs.90).aspx

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by yoyo · May 14, 2013 at 04:30 AM

As of Unity 4.1, Pro version, the best solution is the Memory Profiler, first introduced in this blog post.

For Unity Free, you could use Resources.FindObjectsOfTypeAll to see what you have loaded. It won't find every little allocation, but at least you can track down the big ones -- textures, audio clips, meshes, etc. Or try searching the Asset Store for memory profiling tools.

Comment
Lohoris2
Pangamini
dudester

People who like this

1 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Update about the future of Unity Answers

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta later in June. Please note, we are aiming to set Unity Answers to read-only mode on the 31st of May in order to prepare for the final data migration.

For more information, please read our full announcement.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Texture memory higher when level loaded from another level? 0 Answers

What is SendMouseEvents and why is it allocating memory every frame? 1 Answer

How to properly destroy a script-created AudioClip ? 1 Answer

iOS: Compressed audio not affecting memory? 2 Answers

iOS Vs New Memory Profiler 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges