aboutsummaryrefslogtreecommitdiffstats
path: root/ddms/app
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-01-27 17:50:02 -0800
committerJeff Sharkey <jsharkey@android.com>2012-02-01 11:35:32 -0800
commit613f55001e7f39590d02227179f6f272ae8ab96f (patch)
treeed257d62a5a11b0194e254d9862bef8bf3fc4c31 /ddms/app
parent98e9214b8b17ddcb49c6e9e0f4263ed7c987d311 (diff)
downloadsdk-613f55001e7f39590d02227179f6f272ae8ab96f.zip
sdk-613f55001e7f39590d02227179f6f272ae8ab96f.tar.gz
sdk-613f55001e7f39590d02227179f6f272ae8ab96f.tar.bz2
Show detailed network statistics from xt_qtaguid.
New panel that shows live network statistics by reading xt_qtaguid proc file across adb. Shows all tags for selected UID on a chart with 30 seconds of history. Each tag is presented as unique series, with the overall usage in grey. Table below the chart shows running totals of known tags. Includes options to pause, reset, and change polling frequency. Bug: 5194997 Change-Id: I72d43ab51aaf93ecfd6d45fcd452c7230cdee5b7
Diffstat (limited to 'ddms/app')
-rw-r--r--ddms/app/src/com/android/ddms/UIThread.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/ddms/app/src/com/android/ddms/UIThread.java b/ddms/app/src/com/android/ddms/UIThread.java
index 0584d82..8aaa806 100644
--- a/ddms/app/src/com/android/ddms/UIThread.java
+++ b/ddms/app/src/com/android/ddms/UIThread.java
@@ -52,6 +52,7 @@ import com.android.ddmuilib.logcat.LogColors;
import com.android.ddmuilib.logcat.LogFilter;
import com.android.ddmuilib.logcat.LogPanel;
import com.android.ddmuilib.logcat.LogPanel.ILogFilterStorageManager;
+import com.android.ddmuilib.net.NetworkPanel;
import com.android.menubar.IMenuBarCallback;
import com.android.menubar.IMenuBarEnhancer;
import com.android.menubar.IMenuBarEnhancer.MenuBarMode;
@@ -127,19 +128,22 @@ public class UIThread implements IUiSelectionListener, IClientChangeListener {
private static final int PANEL_SYSINFO = 5;
- private static final int PANEL_COUNT = 6;
+ private static final int PANEL_NETWORK = 6;
+
+ private static final int PANEL_COUNT = 7;
/** Content is setup in the constructor */
private static TablePanel[] mPanels = new TablePanel[PANEL_COUNT];
private static final String[] mPanelNames = new String[] {
"Info", "Threads", "VM Heap", "Native Heap",
- "Allocation Tracker", "Sysinfo"
+ "Allocation Tracker", "Sysinfo", "Network"
};
private static final String[] mPanelTips = new String[] {
"Client information", "Thread status", "VM heap status",
- "Native heap status", "Allocation Tracker", "Sysinfo graphs"
+ "Native heap status", "Allocation Tracker", "Sysinfo graphs",
+ "Network usage"
};
private static final String PREFERENCE_LOGSASH =
@@ -420,6 +424,7 @@ public class UIThread implements IUiSelectionListener, IClientChangeListener {
}
mPanels[PANEL_ALLOCATIONS] = new AllocationPanel();
mPanels[PANEL_SYSINFO] = new SysinfoPanel();
+ mPanels[PANEL_NETWORK] = new NetworkPanel();
}
/**