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

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

Issue 2905403002: plumb network upload into the task manager (Closed)
Patch Set: added refresh timer tests 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..f2c20bf5aa373eaaec4ab2e7a535de18a24b00b0 100644
--- a/chrome/browser/task_manager/sampling/task_group.h
+++ b/chrome/browser/task_manager/sampling/task_group.h
@@ -80,8 +80,11 @@ class TaskGroup {
int64_t gpu_memory() const { return gpu_memory_; }
bool gpu_memory_has_duplicates() const { return gpu_memory_has_duplicates_; }
base::MemoryState memory_state() const { return memory_state_; }
- int64_t per_process_network_usage() const {
- return per_process_network_usage_;
+ int64_t per_process_network_usage_rate() const {
+ return per_process_network_usage_rate_;
+ }
+ int64_t cumulative_per_process_network_usage() const {
+ return cumulative_per_process_network_usage_;
}
bool is_backgrounded() const { return is_backgrounded_; }
@@ -162,7 +165,12 @@ class TaskGroup {
base::MemoryState memory_state_;
// 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_;
+ int64_t per_process_network_usage_rate_;
+
+ // The total(sum) network usage in bytes as the sum of all network usages of
ncarter (slow) 2017/06/16 22:28:30 "A continuously updating sum of all bytes that hav
cburn 2017/06/19 22:07:08 Done.
+ // individual tasks sharing the same process.
+ int64_t cumulative_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