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

Side by Side Diff: content/browser/memory/swap_metrics_observer_linux.h

Issue 2824133002: Record swap metrics (Closed)
Patch Set: comments Created 3 years, 7 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_MEMORY_SWAP_METRICS_OBSERVER_LINUX_H_
6 #define CONTENT_BROWSER_MEMORY_SWAP_METRICS_OBSERVER_LINUX_H_
7
8 #include "content/browser/memory/swap_metrics_observer.h"
9
10 namespace content {
11
12 class SwapMetricsObserverLinux : public SwapMetricsObserver {
13 public:
14 SwapMetricsObserverLinux();
15 ~SwapMetricsObserverLinux() override;
16
17 protected:
18 void UpdateMetricsInternal(base::TimeDelta interval) override;
19
20 private:
21 uint64_t last_pswpin_ = 0;
22 uint64_t last_pswpout_ = 0;
23 };
24
25 } // namespace content
26
27 #endif // CONTENT_BROWSER_MEMORY_SWAP_METRICS_OBSERVER_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698