Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
5
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
Add comment · 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.

$$anonymous$$ost 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. $$anonymous$$y 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, $$anonymous$$ono 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

$$anonymous$$ono 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. $$anonymous$$ore details here -- http://msdn.microsoft.com/en-us/library/system.gc_members(v=vs.90).aspx

1 Reply

· Add your reply
  • Sort: 
avatar image
1

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
Add comment · 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.

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

Total memory allocated increases indefinately from .80GB untill crash 3 Answers

Is there a Unity Game Object information Screen? 1 Answer

Why are compressed textures showing up huge in memory? 0 Answers

Memory profile shows "Profiler" using hundreds of MB - is this OK? 1 Answer

Memory Management and List 6 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