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

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

Issue 1374283003: Reporting top cpu and memory consumers via rappor on chromeos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed arbitrary given weights 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 26 matching lines...) Expand all
37 int64 GetSharedMemoryUsage(TaskId task_id) const override; 37 int64 GetSharedMemoryUsage(TaskId task_id) const override;
38 int64 GetGpuMemoryUsage(TaskId task_id, bool* has_duplicates) const override; 38 int64 GetGpuMemoryUsage(TaskId task_id, bool* has_duplicates) const override;
39 int GetIdleWakeupsPerSecond(TaskId task_id) const override; 39 int GetIdleWakeupsPerSecond(TaskId task_id) const override;
40 int GetNaClDebugStubPort(TaskId task_id) const override; 40 int GetNaClDebugStubPort(TaskId task_id) const override;
41 void GetGDIHandles(TaskId task_id, 41 void GetGDIHandles(TaskId task_id,
42 int64* current, 42 int64* current,
43 int64* peak) const override; 43 int64* peak) const override;
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 bool IsTaskOnBackgroundedProcess(TaskId task_id) const override;
47 const base::string16& GetTitle(TaskId task_id) const override; 48 const base::string16& GetTitle(TaskId task_id) const override;
49 const std::string& GetTaskNameForRappor(TaskId task_id) const override;
48 base::string16 GetProfileName(TaskId task_id) const override; 50 base::string16 GetProfileName(TaskId task_id) const override;
49 const gfx::ImageSkia& GetIcon(TaskId task_id) const override; 51 const gfx::ImageSkia& GetIcon(TaskId task_id) const override;
50 const base::ProcessHandle& GetProcessHandle(TaskId task_id) const override; 52 const base::ProcessHandle& GetProcessHandle(TaskId task_id) const override;
51 const base::ProcessId& GetProcessId(TaskId task_id) const override; 53 const base::ProcessId& GetProcessId(TaskId task_id) const override;
52 Task::Type GetType(TaskId task_id) const override; 54 Task::Type GetType(TaskId task_id) const override;
53 int64 GetNetworkUsage(TaskId task_id) const override; 55 int64 GetNetworkUsage(TaskId task_id) const override;
54 int64 GetSqliteMemoryUsed(TaskId task_id) const override; 56 int64 GetSqliteMemoryUsed(TaskId task_id) const override;
55 bool GetV8Memory(TaskId task_id, 57 bool GetV8Memory(TaskId task_id,
56 int64* allocated, 58 int64* allocated,
57 int64* used) const override; 59 int64* used) const override;
(...skipping 67 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 127 // This will be set to true while there are observers and the task manager is
126 // running. 128 // running.
127 bool is_running_; 129 bool is_running_;
128 130
129 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); 131 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl);
130 }; 132 };
131 133
132 } // namespace task_management 134 } // namespace task_management
133 135
134 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ 136 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698