Chromium Code Reviews| Index: content/browser/memory/swap_metrics_observer_mac.cc |
| diff --git a/content/browser/memory/swap_metrics_observer_mac.cc b/content/browser/memory/swap_metrics_observer_mac.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d44b50fe543b11a7d633a3ed138595239157e837 |
| --- /dev/null |
| +++ b/content/browser/memory/swap_metrics_observer_mac.cc |
| @@ -0,0 +1,15 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "content/browser/memory/swap_metrics_observer.h" |
| + |
| +namespace content { |
| + |
| +// static |
| +SwapMetricsObserver* SwapMetricsObserver::GetInstance() { |
| + // TODO(bashi): Implement SwapMetricsObserver for macOS. |
|
erikchen
2017/04/18 17:48:19
You'll want to use host_statistics64.
See xnu-378
bashi
2017/04/20 01:32:04
Thanks for detailed info! Using host_statistics64
|
| + return nullptr; |
| +} |
| + |
| +} // namespace content |