Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 fderudder · Apr 13, 2010 at 09:35 AM · memoryprofilermonogarbage-collection

Mono profiler hooking on Unity

On the project i'm currently working on, we noticed lots of GC.Collect triggers. Since our object count is quite "small" (comparing to what it will going to be in real cases) we wanted to track down objects creations and collections (and since the codebase is quite big now, i think it would be quite difficult to just deactivate some parts to identify the guilty code)

Since Unity launches its own Mono process, i've wanted to know if it was possible to pass launch parameters to Unity's Mono, to enable Mono profilers (i'm thinking about HeapBuddy and HeapShot).

And BTW, if anyone knows if those kind of profiling tools will be enabled in the upcoming Unity 3.0 version, feel free to mention it.

Thx

Florian Derudder

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Lucas Meijer 1 · Apr 17, 2010 at 09:40 PM

There's some real good information on optimizing for the GC here: http://unity3d.com/support/resources/unite-presentations/optimizing-for-unity-iphone-1.5

You cannot pass your own arguments to mono. (we also dont spawn a mono process by the way, it runs in the same process in which unity runs)

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
1

Answer by goldbug · Oct 20, 2012 at 06:13 PM

The talk you mentioned has moved, it can be found in Unite 09 - Optimizing for Unity iPhone 1.5

That said, the talk about GC is for all practical purposes useless. It says to enable the internal profiler, and that it displays the allocated heap size and the used heap size. Well, ok, but that does not help me at all figure out where I am allocating these objects and what they are.

Imagine a cpu profiler that told you the total amount of time it takes for a program to run, but it does not break it down by method.

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

1 Person is following this question.

avatar image

Related Questions

ManagedHeap.ReservedUnusedSize 0 Answers

Assetbundle loaded asset cannot be cleaned in Android 1 Answer

Can I see non-Monobehavior objects in the memory profiler? 1 Answer

TEXTURE has wrong size in memory 1 Answer

Questions About Allocations - Arrays - Structs and so on 1 Answer


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