| Index: content/browser/memory/swap_metrics_observer_linux.h
|
| diff --git a/content/browser/memory/swap_metrics_observer_linux.h b/content/browser/memory/swap_metrics_observer_linux.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..49c489c376f81142bc69c615ef21f7c29fdecf97
|
| --- /dev/null
|
| +++ b/content/browser/memory/swap_metrics_observer_linux.h
|
| @@ -0,0 +1,27 @@
|
| +// 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.
|
| +
|
| +#ifndef CONTENT_BROWSER_MEMORY_SWAP_METRICS_OBSERVER_LINUX_H_
|
| +#define CONTENT_BROWSER_MEMORY_SWAP_METRICS_OBSERVER_LINUX_H_
|
| +
|
| +#include "content/browser/memory/swap_metrics_observer.h"
|
| +
|
| +namespace content {
|
| +
|
| +class SwapMetricsObserverLinux : public SwapMetricsObserver {
|
| + public:
|
| + SwapMetricsObserverLinux();
|
| + ~SwapMetricsObserverLinux() override;
|
| +
|
| + protected:
|
| + void UpdateMetricsInternal(base::TimeDelta interval) override;
|
| +
|
| + private:
|
| + uint64_t last_pswpin_ = 0;
|
| + uint64_t last_pswpout_ = 0;
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_MEMORY_SWAP_METRICS_OBSERVER_LINUX_H_
|
|
|