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

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

Issue 2824133002: Record swap metrics (Closed)
Patch Set: Created 3 years, 8 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 static SwapMetricsObserverLinux* GetInstance();
Primiano Tucci (use gerrit) 2017/04/27 10:01:20 you don't seem to make any use of this specialized
bashi 2017/04/28 02:05:35 Done.
15
16 SwapMetricsObserverLinux();
17 ~SwapMetricsObserverLinux() override;
18
19 protected:
20 void UpdateMetricsInternal(base::TimeDelta interval) override;
21
22 private:
23 friend struct base::LeakySingletonTraits<SwapMetricsObserverLinux>;
24
25 uint64_t last_pswpin_ = 0;
26 uint64_t last_pswpout_ = 0;
27 };
28
29 } // namespace content
30
31 #endif // CONTENT_BROWSER_MEMORY_SWAP_METRICS_OBSERVER_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698