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

Unified Diff: chrome/browser/task_manager/sampling/task_group.h

Issue 2905403002: plumb network upload into the task manager (Closed)
Patch Set: fixed negative byte totals Created 3 years, 6 months 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_manager/sampling/task_group.h
diff --git a/chrome/browser/task_manager/sampling/task_group.h b/chrome/browser/task_manager/sampling/task_group.h
index 7768367888b9d77d600d185910b74962ae51a828..1f7e7d9d4789696c01eaa46e817ce700c97dd36a 100644
--- a/chrome/browser/task_manager/sampling/task_group.h
+++ b/chrome/browser/task_manager/sampling/task_group.h
@@ -83,6 +83,9 @@ class TaskGroup {
int64_t per_process_network_usage() const {
return per_process_network_usage_;
}
+ int64_t total_per_process_network_usage() const {
+ return total_per_process_network_usage_;
+ }
bool is_backgrounded() const { return is_backgrounded_; }
#if defined(OS_WIN)
@@ -163,6 +166,11 @@ class TaskGroup {
// The network usage in bytes per second as the sum of all network usages of
// the individual tasks sharing the same process.
int64_t per_process_network_usage_;
+
+ // The total(sum) network usage in bytes per second as the sum of all
+ // network usages of the individual tasks sharing the same process.
+ int64_t total_per_process_network_usage_;
+
#if defined(OS_WIN)
// Windows GDI and USER Handles.
int64_t gdi_current_handles_;

Powered by Google App Engine
This is Rietveld 408576698