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

Side by Side Diff: chrome/browser/task_manager/sampling/shared_sampler_posix.cc

Issue 2238403003: Task manager: Get physical memory efficiently for all processes from SharedSampler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "chrome/browser/task_manager/sampling/shared_sampler.h" 5 #include "chrome/browser/task_manager/sampling/shared_sampler.h"
6 6
7 #include "content/public/browser/browser_thread.h" 7 #include "content/public/browser/browser_thread.h"
8 8
9 namespace task_manager { 9 namespace task_manager {
10 10
11 SharedSampler::SharedSampler( 11 SharedSampler::SharedSampler(
12 const scoped_refptr<base::SequencedTaskRunner>& blocking_pool_runner) {} 12 const scoped_refptr<base::SequencedTaskRunner>& blocking_pool_runner) {}
13 13
14 SharedSampler::~SharedSampler() {} 14 SharedSampler::~SharedSampler() {}
15 15
16 int64_t SharedSampler::GetSupportedFlags() const { return 0; } 16 int64_t SharedSampler::GetSupportedFlags() const { return 0; }
17 17
18 void SharedSampler::RegisterCallbacks( 18 void SharedSampler::RegisterCallbacks(
19 base::ProcessId process_id, 19 base::ProcessId process_id,
20 const OnIdleWakeupsCallback& on_idle_wakeups) {} 20 const OnIdleWakeupsCallback& on_idle_wakeups,
21 const OnPhysicalMemoryCallback& on_physical_memory) {}
21 22
22 void SharedSampler::UnregisterCallbacks(base::ProcessId process_id) {} 23 void SharedSampler::UnregisterCallbacks(base::ProcessId process_id) {}
23 24
24 void SharedSampler::Refresh(base::ProcessId process_id, 25 void SharedSampler::Refresh(base::ProcessId process_id,
25 int64_t refresh_flags) {} 26 int64_t refresh_flags) {}
26 27
27 } // namespace task_manager 28 } // namespace task_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698