Android Simpleperf tool.
Project description
perftools
apkrepacker
$ python -m perftools.apkrepacker --help
usage: apkrepacker.py [-h] -i APK [-o OUTPUT] [--enable-debuggable] [--enable-profileable]
optional arguments:
-h, --help show this help message and exit
-i APK, --apk APK path of input apk
-o OUTPUT, --output OUTPUT
output path of repacked apk file
--enable-debuggable add debuggable in AndroidManifest.xml
--enable-profileable add profileable in AndroidManifest.xml
simpleperf
python -m perftools.simpleperf -h
usage: simpleperf.py [-h] -s SERIAL -p APP [-o OUTPUT] [-f FREQ] [-d DURATION]
optional arguments:
-h, --help show this help message and exit
-s SERIAL, --serial SERIAL
serial of device
-p APP, --app APP package name of app to be profiled
-o OUTPUT, --output OUTPUT
output path of perf data collected in device
-f FREQ, --freq FREQ frequency of simpleperf record
-d DURATION, --duration DURATION
duration of simpleperf record
perfdata
from perftools.perfdata import Perfdata
from pathlib import Path
import json
data = Perfdata("./perf.data")
threads = data.get_threads()
print(threads)
unitymain = threads["UnityMain"][0]
Path("a.json").write_text(json.dumps(unitymain.aggregate().json(), indent=1, ensure_ascii=False))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
perftools-0.2.3.tar.gz
(50.6 MB
view hashes)
Built Distribution
perftools-0.2.3-py3-none-any.whl
(50.7 MB
view hashes)
Close
Hashes for perftools-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93b32845fa1489161b4720b6ccbad52fa22f66fda67fdb8d986d7f2a00a82ba7 |
|
MD5 | e1dce711e80e59c988cf149d51ce31e5 |
|
BLAKE2b-256 | beaf8f95359991128a1ccdaddb07d8075164e00236069c085f64cd3a5789a6e4 |