alibaba / mobileperf

Android performance test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android 10及以上系统,流量是全局流量,而不是当前进程流量

luoshengheng opened this issue · comments

Android 10以下系统:通过/proc/net/xt_qtaguid,可以获取到当前进程的流量
Android 10及以上系统:/proc/net/xt_qtaguid不存在了,只能通过/proc/{pid}/net/dev获取流量,但该方法获取的是全局流量