ilan
ilan

Reputation: 4462

Adding life cycle to Time Profile instrument

I'm trying to debug my app launch time using time profiler instrument.

But i know i'm suppose to have a life cycle graph under the CPU Usage, but i don't have it.

enter image description here

How can i add it to there?

Thanks

Upvotes: 3

Views: 907

Answers (3)

Nguyễn Quang
Nguyễn Quang

Reputation: 21

I had the same issue, I figured out that running on the simulator did not have App Life Cycle in Time Profile Instrument. I tried to run on a device - iOS 16.7.8 which is not the latest iOS but fortunately, the App life cycle appeared. If it doesn't work to you, the final solution is updating Xcode and Instrument to latest version.

Upvotes: 0

suite22
suite22

Reputation: 476

I tested a couple combinations of iOS devices and Xcode / Instruments versions. The life cycle section appeared using iOS 11 and Xcode 9 beta, but when I tried an older iOS 9 device using Xcode 8 and 7 it wasn't there.

Life Cycle view

What combination of device OS and Xcode / Instruments are you seeing this on?

Upvotes: 0

luke_parham
luke_parham

Reputation: 141

I ran into this recently, and unfortunately, the answer seems to be that you only see the life cycle graph if your device/iOS version is new enough. I wondered about this for a whole day and then switched to an iPhone 5 that was on iOS 10 and these sections magically came back. It didn't show up on my iPod even after full updating it so if you have a newer phone or are capable of upgrading that seems like the only way to get this fixed.

Upvotes: 0

Related Questions