diff options
Diffstat (limited to 'en/devices/tech/debug/netstats.html')
-rw-r--r-- | en/devices/tech/debug/netstats.html | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/en/devices/tech/debug/netstats.html b/en/devices/tech/debug/netstats.html index a396700d..78ddef02 100644 --- a/en/devices/tech/debug/netstats.html +++ b/en/devices/tech/debug/netstats.html @@ -31,8 +31,8 @@ network usage statistics collected since the device booted up.</p> <p>To view network usage statistics, run the following command:</p> -<pre class=prettyprint> -$ adb shell dumpsys netstats detail +<pre class="devsite-terminal devsite-click-to-copy"> +adb shell dumpsys netstats detail </pre> @@ -56,7 +56,7 @@ consists of several sections: </p> <p>Here is sample output for the active interfaces and active UID interfaces sections:</p> -<pre> +<pre class="devsite-click-to-copy"> Active interfaces: iface=wlan0 ident=[{type=WIFI, subType=COMBINED, networkId="GoogleGuest"}] Active UID interfaces: @@ -72,7 +72,7 @@ information in these two section is the same.</p> <p>Here is sample output for the Dev statistics section:</p> -<pre> +<pre class="devsite-click-to-copy"> Dev stats: Pending bytes: 170775 Complete history: @@ -94,7 +94,7 @@ Dev stats: <h3 id=uid_stats>UID stats</h3> -<pre> +<pre class="devsite-click-to-copy"> UID stats: Pending bytes: 744 Complete history: @@ -120,9 +120,11 @@ Then look for the line labeled <code>userId</code>.</p> <p>In our example, suppose we are trying to find network usage for our app “com.example.myapp”. We would run the following command:</p> -<pre> -$ adb shell dumpsys package com.example.myapp | grep userId - +<pre class="devsite-terminal devsite-click-to-copy"> +adb shell dumpsys package com.example.myapp | grep userId +</pre> +<p>This returns the following output:</p> +<pre class="devsite-click-to-copy"> userId=10007 gids=[3003, 1028, 1015] </pre> |