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

Side by Side Diff: chrome/browser/task_manager/task_manager_interface.h

Issue 2653563003: Add a "Keepalive count" column to Task Manager. (Closed)
Patch Set: Address review comment re description Created 3 years, 10 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_TASK_MANAGER_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_
6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_ 6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 virtual bool GetV8Memory(TaskId task_id, 194 virtual bool GetV8Memory(TaskId task_id,
195 int64_t* allocated, 195 int64_t* allocated,
196 int64_t* used) const = 0; 196 int64_t* used) const = 0;
197 197
198 // Gets the Webkit resource cache stats for the task with |task_id|. 198 // Gets the Webkit resource cache stats for the task with |task_id|.
199 // A return value of false means that task does NOT report WebCache stats. 199 // A return value of false means that task does NOT report WebCache stats.
200 virtual bool GetWebCacheStats( 200 virtual bool GetWebCacheStats(
201 TaskId task_id, 201 TaskId task_id,
202 blink::WebCache::ResourceTypeStats* stats) const = 0; 202 blink::WebCache::ResourceTypeStats* stats) const = 0;
203 203
204 // Returns the keep-alive counter if the Task is an event page, -1 otherwise.
205 virtual int GetKeepaliveCount(TaskId task_id) const = 0;
206
204 // Gets the list of task IDs currently tracked by the task manager. Tasks that 207 // Gets the list of task IDs currently tracked by the task manager. Tasks that
205 // share the same process id will always be consecutive. The list will be 208 // share the same process id will always be consecutive. The list will be
206 // sorted in a way that reflects the process tree: the browser process will be 209 // sorted in a way that reflects the process tree: the browser process will be
207 // first, followed by the gpu process if it exists. Related processes (e.g., a 210 // first, followed by the gpu process if it exists. Related processes (e.g., a
208 // subframe process and its parent) will be kept together if possible. Callers 211 // subframe process and its parent) will be kept together if possible. Callers
209 // can expect this ordering to be stable when a process is added or removed. 212 // can expect this ordering to be stable when a process is added or removed.
210 virtual const TaskIdList& GetTaskIdsList() const = 0; 213 virtual const TaskIdList& GetTaskIdsList() const = 0;
211 214
212 // Gets the list of task IDs of the tasks that run on the same process as the 215 // Gets the list of task IDs of the tasks that run on the same process as the
213 // task with |task_id|. The returned list will at least include |task_id|. 216 // task with |task_id|. The returned list will at least include |task_id|.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 286
284 // The flags containing the enabled resources types calculations. 287 // The flags containing the enabled resources types calculations.
285 int64_t enabled_resources_flags_; 288 int64_t enabled_resources_flags_;
286 289
287 DISALLOW_COPY_AND_ASSIGN(TaskManagerInterface); 290 DISALLOW_COPY_AND_ASSIGN(TaskManagerInterface);
288 }; 291 };
289 292
290 } // namespace task_manager 293 } // namespace task_manager
291 294
292 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_ 295 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/sampling/task_manager_impl.cc ('k') | chrome/browser/task_manager/task_manager_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698