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

Side by Side Diff: base/trace_event/process_memory_totals.h

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « base/trace_event/process_memory_dump.cc ('k') | base/trace_event/process_memory_totals.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 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 BASE_TRACE_EVENT_PROCESS_MEMORY_TOTALS_H_
6 #define BASE_TRACE_EVENT_PROCESS_MEMORY_TOTALS_H_
7
8 #include "base/base_export.h"
9 #include "base/basictypes.h"
10
11 namespace base {
12 namespace trace_event {
13
14 class TracedValue;
15
16 // Dump provider which collects process-wide memory stats.
17 class BASE_EXPORT ProcessMemoryTotals {
18 public:
19 ProcessMemoryTotals() {}
20
21 // Called at trace generation time to populate the TracedValue.
22 void AsValueInto(TracedValue* value) const;
23
24 uint64 resident_set_bytes() const { return resident_set_bytes_; }
25 void set_resident_set_bytes(uint64 value) { resident_set_bytes_ = value; }
26
27 private:
28 uint64 resident_set_bytes_;
29
30 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryTotals);
31 };
32
33 } // namespace trace_event
34 } // namespace base
35
36 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_TOTALS_H_
OLDNEW
« no previous file with comments | « base/trace_event/process_memory_dump.cc ('k') | base/trace_event/process_memory_totals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698