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

Side by Side Diff: chrome/browser/task_management/sampling/task_manager_impl.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 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_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_
6 #define CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ 6 #define CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void GetUSERHandles(TaskId task_id, 44 void GetUSERHandles(TaskId task_id,
45 int64* current, 45 int64* current,
46 int64* peak) const override; 46 int64* peak) const override;
47 const base::string16& GetTitle(TaskId task_id) const override; 47 const base::string16& GetTitle(TaskId task_id) const override;
48 base::string16 GetProfileName(TaskId task_id) const override; 48 base::string16 GetProfileName(TaskId task_id) const override;
49 const gfx::ImageSkia& GetIcon(TaskId task_id) const override; 49 const gfx::ImageSkia& GetIcon(TaskId task_id) const override;
50 const base::ProcessHandle& GetProcessHandle(TaskId task_id) const override; 50 const base::ProcessHandle& GetProcessHandle(TaskId task_id) const override;
51 const base::ProcessId& GetProcessId(TaskId task_id) const override; 51 const base::ProcessId& GetProcessId(TaskId task_id) const override;
52 Task::Type GetType(TaskId task_id) const override; 52 Task::Type GetType(TaskId task_id) const override;
53 int64 GetNetworkUsage(TaskId task_id) const override; 53 int64 GetNetworkUsage(TaskId task_id) const override;
54 int64 GetProcessTotalNetworkUsage(TaskId task_id) const override;
54 int64 GetSqliteMemoryUsed(TaskId task_id) const override; 55 int64 GetSqliteMemoryUsed(TaskId task_id) const override;
55 bool GetV8Memory(TaskId task_id, 56 bool GetV8Memory(TaskId task_id,
56 int64* allocated, 57 int64* allocated,
57 int64* used) const override; 58 int64* used) const override;
58 bool GetWebCacheStats( 59 bool GetWebCacheStats(
59 TaskId task_id, 60 TaskId task_id,
60 blink::WebCache::ResourceTypeStats* stats) const override; 61 blink::WebCache::ResourceTypeStats* stats) const override;
61 const TaskIdList& GetTaskIdsList() const override; 62 const TaskIdList& GetTaskIdsList() const override;
62 size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override; 63 size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override;
63 64
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // This will be set to true while there are observers and the task manager is 126 // This will be set to true while there are observers and the task manager is
126 // running. 127 // running.
127 bool is_running_; 128 bool is_running_;
128 129
129 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); 130 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl);
130 }; 131 };
131 132
132 } // namespace task_management 133 } // namespace task_management
133 134
134 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ 135 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/task_management/sampling/task_group.cc ('k') | chrome/browser/task_management/sampling/task_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698