Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5928)

Unified Diff: chrome/browser/task_management/task_manager_interface.h

Issue 1439213004: Fix various TaskManager bugs and add new enhancements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: auto*& --> auto* Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/task_management/task_manager_interface.h
diff --git a/chrome/browser/task_management/task_manager_interface.h b/chrome/browser/task_management/task_manager_interface.h
index a58b7e72ff988e23f9c4465410ce9dd72f7fb753..9197785f5db9173224b0846f41fb74c293b94ca0 100644
--- a/chrome/browser/task_management/task_manager_interface.h
+++ b/chrome/browser/task_management/task_manager_interface.h
@@ -66,8 +66,9 @@ class TaskManagerInterface {
// refresh cycle. A value of -1 means no valid value is currently available.
virtual int GetIdleWakeupsPerSecond(TaskId task_id) const = 0;
- // Returns the NaCl GDB debug stub port. A value of -1 means no valid value is
- // currently available.
+ // Returns the NaCl GDB debug stub port. A value of
+ // |nacl::kGdbDebugStubPortUnknown| means no valid value is currently
+ // available. A value of -2 means NaCl is not enabled for this build.
virtual int GetNaClDebugStubPort(TaskId task_id) const = 0;
// On Windows, gets the current and peak number of GDI and USER handles in
@@ -104,6 +105,13 @@ class TaskManagerInterface {
// usage.
virtual int64 GetNetworkUsage(TaskId task_id) const = 0;
+ // Returns the total network usage (in bytes per second) during the current
+ // refresh cycle for the process on which the task with |task_id| is running.
+ // This is the sum of all the network usage of the individual tasks (that
+ // can be gotten by the above GetNetworkUsage()). A value of -1 means network
+ // usage calculation refresh is currently not available.
+ virtual int64 GetProcessTotalNetworkUsage(TaskId task_id) const = 0;
+
// Returns the Sqlite used memory (in bytes) for the task with |task_id|.
// A value of -1 means no valid value is currently available.
virtual int64 GetSqliteMemoryUsed(TaskId task_id) const = 0;

Powered by Google App Engine
This is Rietveld 408576698