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
24
Question by Daniel Sperry 2 · Jun 09, 2010 at 05:48 AM · memorydebugmonoheap

How to take mono heap dump from unity3d?

Is it possible to take heap dump for the managed (mono) objects?

Obs.: I am not talking about native heap dumps.

A similar feature is available in java and other languages.

For instance with java there are programs to perform offline analysis of the java heap, allowing to count application objects, navigate on the object tree, etc.

Do unity3d or mono have a similar feature?

Comment
Add comment · Show 2
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 PrimeDerektive · Jan 04, 2011 at 01:25 AM 0
Share

This question title is epic.

avatar image oscargee · Mar 19, 2012 at 08:37 PM 0
Share

Same question. Is it resolved in 3.5?

3 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by yoyo · Dec 28, 2010 at 05:37 PM

Note that if you want to dump information about all the objects in your scene, you don't need to delve into the bowels of the .NET heap, you can simply traverse the scene and dump information about the objects it contains. This is not the same as a heap dump, but is still a very useful debugging tool.

This script demonstrates how to dump information about all the objects and components in the scene. Works for Unity 2.6 and 3.1, and is not dependent on the debugger.

For a more full-featured version of this script, including a new editor window with System.Reflection-based scene exploration, see http://zeroandone.ca/unity.

alt text

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
avatar image
3

Answer by Dreamora · Jun 13, 2010 at 05:17 AM

Unity doesn't offer any such functionality.

Can't comment on mono 1.2.5, but I can say that there is not even support for debugging in it, so that might give indications.

Comment
Add comment · Show 5 · 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
avatar image Ricardo · Jun 13, 2010 at 07:48 AM 0
Share

Although debugging support has been announced for Unity 3, so he might get that capability come summer.

avatar image Daniel Sperry 2 · Jul 29, 2010 at 02:56 AM 0
Share

I will not mark this question as answered until a few week after the 3.0 release...

avatar image yoyo · Jan 13, 2011 at 09:29 AM 0
Share

Hi $$anonymous$$, the 3.0 release has come and gone -- did you find any other info elsewhere you can share, or are my suggestions of any use for your situation?

avatar image oscargee · Mar 19, 2012 at 07:43 PM 0
Share

Same question. Is it resolved in Unity 3.5?

avatar image theschwartz · Mar 29, 2012 at 02:21 PM 0
Share

Also interested to hear if there is any news on this

avatar image
3

Answer by yoyo · Dec 28, 2010 at 04:41 PM

Unity 3.1 doesn't offer heap dump support either, though debugging is now possible, with MonoDevelop, the Mono IDE.

Mono itself does have a profiler, which includes the ability to log and analyze object allocations. Currently it runs only from the command line, though there are plans to integrate it with MonoDevelop.

I wondered if I could use the command line profiler in the Unity environment. I downloaded Mono 2.8.1 (the latest stable release), and attempted to run "mono --profile=log unity.exe", but this only works for .NET applications, which unity.exe is not. Worse than that, installing Mono 2.8.1 messed up the MonoDevelop environment integrated with Unity 3.1. At this point I gave up, maybe someone else has tried harder and had more luck?

So for the time being at least, it looks as though we're still out of luck. The good news is that graphical profiling tools are in the works for MonoDevelop and hopefully we can expect to benefit from them in a future Unity release.

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

2 People are following this question.

avatar image avatar image

Related Questions

Can I use Monodevelop bundled with Unity to debug standalone .NET applications? 0 Answers

Used heap is above 10MB, should I worry? 0 Answers

Mono profiler hooking on Unity 2 Answers

how to debug a js in mono 0 Answers

Crash dumps and debug symbols (oh my) 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