iOS 设置选项 ->开发者选项->logging ->start recording
2.
进行需要测试电量的场景操作后进入开发者选项点击stop recording
3.
将iOS设备和Mac连接
4.
打开Instrument,选择Energy Diagnostic