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
0
Question by Statement · Oct 28, 2015 at 11:53 AM · iosprofilingcontinuousautomated

How can I automate iOS profiling?

I am working on a project where I want to automatically profile a nightly iOS build, digest the profiling data and produce a report for that day.

The options for profiling I currently have is either:

  1. Enable internal profiler.

  2. Setting Profiler.logFile.

  3. Automate Xcode Instruments.

Preferably, I'd want to use the internal profiler (option #1) because the information is good enough for my needs and it has relatively low overhead. For Android I can use logcat and parse the data but I can't seem to find a simple way to access the log for iOS (It's piped to Xcode Console via the debugger as far as I understand but I don't know how to get the output). So for iOS I wrote a C plugin that tee stdout to file which I call as soon as Unity start, so I get a file with pretty much the same contents as adb logcat would give. If possible I would rather scrap my plugin if the log can be accessed elsewhere.

The problem I have with option #1 and #2 is that I don't yet know how to automatically transfer the file from iOS device to my Mac. From what I've gathered I need to jailbreak the device and install ssh to be able to do that. Is there any other way to get the file? Preferably a terminal command.

I guess I can work around it by opening a network socket in Unity and transfer the file(s) over network when I'm done but I rather avoid creating such a system if there is a simpler way to solve this rather silly issue.

The problem I have with option #3 is that I don't know how to automate Instruments or parse the data. Since I will be switching scenes I want to be able to annotate the profiling so that I can log performance for Scene1, then Scene 2, then Scene 3 and so on.

I rather not take this route (option #3) because I only want a simple overview of whats already available in the internal profiler. It's just difficult to get the internal profiler log into a program where I can parse the log.

Comment
Add comment · Show 1
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 Statement · Nov 16, 2015 at 09:36 AM 0
Share

Anyone? Offering 500 reputation award for a usable answer.

0 Replies

· Add your reply
  • Sort: 

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

31 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 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

UpdateDepthNormalsTexture 0 Answers

AssetBundle memory profiling 0 Answers

Why is there so much GC allocation with GameObject.Activate and Physics2D.SendTriggerContactCallbacks on iOS? 1 Answer

iOS profiling help 0 Answers

iOS framerate drops every 10 seconds or so... 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