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

Side by Side Diff: chrome/browser/task_manager/sampling/task_manager_impl.h

Issue 2653563003: Add a "Keepalive count" column to Task Manager. (Closed)
Patch Set: Restructure GetColumnIdAsString implementation macros Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_
6 #define CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_ 6 #define CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 int* out_error_code) const override; 78 int* out_error_code) const override;
79 int64_t GetNetworkUsage(TaskId task_id) const override; 79 int64_t GetNetworkUsage(TaskId task_id) const override;
80 int64_t GetProcessTotalNetworkUsage(TaskId task_id) const override; 80 int64_t GetProcessTotalNetworkUsage(TaskId task_id) const override;
81 int64_t GetSqliteMemoryUsed(TaskId task_id) const override; 81 int64_t GetSqliteMemoryUsed(TaskId task_id) const override;
82 bool GetV8Memory(TaskId task_id, 82 bool GetV8Memory(TaskId task_id,
83 int64_t* allocated, 83 int64_t* allocated,
84 int64_t* used) const override; 84 int64_t* used) const override;
85 bool GetWebCacheStats( 85 bool GetWebCacheStats(
86 TaskId task_id, 86 TaskId task_id,
87 blink::WebCache::ResourceTypeStats* stats) const override; 87 blink::WebCache::ResourceTypeStats* stats) const override;
88 int GetKeepaliveCount(TaskId task_id) const override;
88 const TaskIdList& GetTaskIdsList() const override; 89 const TaskIdList& GetTaskIdsList() const override;
89 TaskIdList GetIdsOfTasksSharingSameProcess(TaskId task_id) const override; 90 TaskIdList GetIdsOfTasksSharingSameProcess(TaskId task_id) const override;
90 size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override; 91 size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override;
91 TaskId GetTaskIdForWebContents( 92 TaskId GetTaskIdForWebContents(
92 content::WebContents* web_contents) const override; 93 content::WebContents* web_contents) const override;
93 94
94 // task_manager::TaskProviderObserver: 95 // task_manager::TaskProviderObserver:
95 void TaskAdded(Task* task) override; 96 void TaskAdded(Task* task) override;
96 void TaskRemoved(Task* task) override; 97 void TaskRemoved(Task* task) override;
97 void TaskUnresponsive(Task* task) override; 98 void TaskUnresponsive(Task* task) override;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // This will be set to true while there are observers and the task manager is 169 // This will be set to true while there are observers and the task manager is
169 // running. 170 // running.
170 bool is_running_; 171 bool is_running_;
171 172
172 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); 173 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl);
173 }; 174 };
174 175
175 } // namespace task_manager 176 } // namespace task_manager
176 177
177 #endif // CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_ 178 #endif // CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698