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
0
Question by Exalia · Sep 02, 2013 at 03:10 PM · androidprofilerinternalstatistics

Retrieving Profiler Stats (Android)

So my logcat shows profiler stats in this format :

D/Unity ( 1348): ----------------------------------------

D/Unity ( 1348): Android Unity internal profiler stats:

D/Unity ( 1348): cpu-player> min: 8.1 max: 21.9 avg: 12.8

D/Unity ( 1348): cpu-ogles-drv> min: 0.7 max: 2.3 avg: 1.1

D/Unity ( 1348): cpu-present> min: 11.2 max: 27.7 avg: 21.5

D/Unity ( 1348): frametime> min: 31.3 max: 40.5 avg: 35.4

D/Unity ( 1348): draw-call #> min: 23 max: 27 avg: 23 | batched: 0

D/Unity ( 1348): tris #> min: 8038 max: 8106 avg: 8050 | batched: 6

D/Unity ( 1348): verts #> min: 7958 max: 8094 avg: 7982 | batched: 12

D/Unity ( 1348): player-detail> physx: 1.0 animation: 0.6 culling 0.0 skinning: 0.5 batching: 0.0 render: 4.9 fixed-update-count: 1 .. 2 D/Unity ( 1348): mono-scripts> update: 1.3 fixedUpdate: 0.0 coroutines: 0.1

D/Unity ( 1348): mono-memory> used heap: 4295446528 allocated heap: 4614617861887885312 max number of collections: 1610612736 collection total duration: 0.5

D/Unity ( 1348): ----------------------------------------

Is there anyway I can extract this data and display it in my game?

alt text

statisticswindow.png (92.5 kB)
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by ZenithCode · Sep 02, 2013 at 03:26 PM

This script lets you get parts of this data onto the game.

http://forum.unity3d.com/threads/58746-Fatal-error-in-gc-Too-many-heap-sections

Comment
Add comment · Show 4 · 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 Exalia · Sep 02, 2013 at 03:29 PM 0
Share

Not sure if you gave me the right link there :\ FPS in those scripts aren't taken from the profiler they are made from the output frames of the game. which is probably vertical synced FPS (Not even the real FPS of the game)

avatar image ZenithCode · Sep 02, 2013 at 03:33 PM 0
Share

You can do something like this to get Total memory usage and $$anonymous$$ono memory usage.

             var total$$anonymous$$emoryUsage = Profiler.usedHeapSize / 1024 / 1024;
             long memUsed = mono_gc_get_used_size();
avatar image Exalia · Sep 02, 2013 at 04:14 PM 0
Share

Thanks for the info :)

Although the main stat's I would like are Frametime, CPU Usage, Vert/Polygon count, Texture $$anonymous$$emory, Draw call count.

I hope there is a way to get this data as it is clearly being exported to the integrated profiler...

avatar image Exalia · Sep 03, 2013 at 12:51 PM 0
Share

Anyone had any experience with this? Thanks

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

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Creating Unity Plugin 1 Answer

How to display profiling data on screen (Android) 2 Answers

Creating Unity Statistics Plugin 0 Answers

perfHUD & Unity 0 Answers

A node in a childnode? 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