Android apps always face the challenge of CPU and memory threshold; therefore, the library aims to detect, analyze, and optimize performance.
1: check the process name of apps, for example, com.jack.performance
adb shell ps | grep com.jack.performance2: get the consumption of CPU and memory
adb shell top -p {pid} -H3: Using python script to capture datas, the data will be saved in the Desktop file
source ./venv/bin/activate
python getTop.py com.jack.performance4: generate the chart figure
source ./venv/bin/activate
python3 cpu-chart.py xxx.txt1: setup probes(injection), then save the config.gpx
2: Copy and save the config.gpx
real file -> /configure/cpu-config.gpx
3: execute command
cat config.pbtx | adb shell perfetto -c - --txt -o /data/misc/perfetto-traces/trace.pftrace4: pull the trace file
adb pull /data/misc/perfetto-traces/trace.pftrace


