How to get GPU Energy cost in XCode?

My unity game is getting very hot quickly, So I use XCode Energy Impact to test the energy use for it on iPhone8.

In Debugging Gauges, Click Energy impact, I can get the following data: CPU for 45%, Network for 10%, Overhead for 45%, Location for 0%, GPU for 0%.

Location is OK because I don't use it. But Why GPU is 0%?

Click FPS, My game run for FPS 60. CPU cost 16.6ms, GPU cost 5.2ms. I want to compare the energy consumption of CPU and GPU, but 0% for GPU is obvious wrong, how to fix it and get correct data?

And, I can't find Energy Log or Energy diagnostics in Instruments, How can I find and use it?

Replies

  • Yes, I read it and find some notes, "GPU utilization is reported on iPhone 5S and later, and requires iOS 10.0 or later." But my test device is iPhone8, and iOS14.2, it should be OK. But the GPU utilization shows 0%.

Add a Comment