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

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

Issue 2593233003: Add a task manager column that shows memory state of processes (Closed)
Patch Set: fix compile error 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_TEST_TASK_MANAGER_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGER_TEST_TASK_MANAGER_H_
6 #define CHROME_BROWSER_TASK_MANAGER_TEST_TASK_MANAGER_H_ 6 #define CHROME_BROWSER_TASK_MANAGER_TEST_TASK_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 14 matching lines...) Expand all
25 void ActivateTask(TaskId task_id) override; 25 void ActivateTask(TaskId task_id) override;
26 bool IsTaskKillable(TaskId task_id) override; 26 bool IsTaskKillable(TaskId task_id) override;
27 void KillTask(TaskId task_id) override; 27 void KillTask(TaskId task_id) override;
28 double GetCpuUsage(TaskId task_id) const override; 28 double GetCpuUsage(TaskId task_id) const override;
29 int64_t GetPhysicalMemoryUsage(TaskId task_id) const override; 29 int64_t GetPhysicalMemoryUsage(TaskId task_id) const override;
30 int64_t GetPrivateMemoryUsage(TaskId task_id) const override; 30 int64_t GetPrivateMemoryUsage(TaskId task_id) const override;
31 int64_t GetSharedMemoryUsage(TaskId task_id) const override; 31 int64_t GetSharedMemoryUsage(TaskId task_id) const override;
32 int64_t GetSwappedMemoryUsage(TaskId task_id) const override; 32 int64_t GetSwappedMemoryUsage(TaskId task_id) const override;
33 int64_t GetGpuMemoryUsage(TaskId task_id, 33 int64_t GetGpuMemoryUsage(TaskId task_id,
34 bool* has_duplicates) const override; 34 bool* has_duplicates) const override;
35 base::MemoryState GetMemoryState(TaskId task_id) const override;
35 int GetIdleWakeupsPerSecond(TaskId task_id) const override; 36 int GetIdleWakeupsPerSecond(TaskId task_id) const override;
36 int GetNaClDebugStubPort(TaskId task_id) const override; 37 int GetNaClDebugStubPort(TaskId task_id) const override;
37 void GetGDIHandles(TaskId task_id, 38 void GetGDIHandles(TaskId task_id,
38 int64_t* current, 39 int64_t* current,
39 int64_t* peak) const override; 40 int64_t* peak) const override;
40 void GetUSERHandles(TaskId task_id, 41 void GetUSERHandles(TaskId task_id,
41 int64_t* current, 42 int64_t* current,
42 int64_t* peak) const override; 43 int64_t* peak) const override;
43 int GetOpenFdCount(TaskId task_id) const override; 44 int GetOpenFdCount(TaskId task_id) const override;
44 bool IsTaskOnBackgroundedProcess(TaskId task_id) const override; 45 bool IsTaskOnBackgroundedProcess(TaskId task_id) const override;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 gfx::ImageSkia icon_; 86 gfx::ImageSkia icon_;
86 TaskIdList ids_; 87 TaskIdList ids_;
87 88
88 private: 89 private:
89 DISALLOW_COPY_AND_ASSIGN(TestTaskManager); 90 DISALLOW_COPY_AND_ASSIGN(TestTaskManager);
90 }; 91 };
91 92
92 } // namespace task_manager 93 } // namespace task_manager
93 94
94 #endif // CHROME_BROWSER_TASK_MANAGER_TEST_TASK_MANAGER_H_ 95 #endif // CHROME_BROWSER_TASK_MANAGER_TEST_TASK_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager_tester.cc ('k') | chrome/browser/task_manager/test_task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698