A dylib to get cpu power usage & P/E cluster frequency from a iOS application(non-jailbreak).https://github.com/apple-oss-distributions/xnu/blob/5c2921b07a2480ab43ec66f5b9e41cb872bc554f/doc/recount.md (XNU documentation)
- Get a decrypted IPA for the app you want to measure. (e.g https://decrypt.day/).
- Use the dylib I provided or compile it youself (instruction below).
- Use a ipa inject tool to inject the dylib into the IPA
- Sign the app and play...
- Open console.app in your Mac
- Select your Device from left panel.
- Search for
inject.c:
. NOTE: The default sample interval is 1 second.
clang -isysroot $(xcrun --sdk iphoneos --show-sdk-path) -arch arm64 -dynamiclib -lproc -o inject_*.dylib inject_*.c
- use scarlet to inject dylib directly on your phone.
- https://github.com/paradiseduo/inject
- https://github.com/EamonTracey/iPatch (GUI)