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

Side by Side Diff: third_party/WebKit/Source/platform/wtf/ProcessMetrics.h

Issue 2925073002: Move malloc/partition_alloc memory usage functions to base (Closed)
Patch Set: Moved to ProcessMetrics method, etc Created 3 years, 6 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 | « third_party/WebKit/Source/platform/wtf/DEPS ('k') | no next file » | 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 (c) 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 ProcessMetrics_h
6 #define ProcessMetrics_h
7
8 #include "base/process/process_metrics.h"
9
10 namespace WTF {
11
12 size_t GetMallocUsage() {
13 std::unique_ptr<base::ProcessMetrics> metric(
14 base::ProcessMetrics::CreateCurrentProcessMetrics());
15 return metric->GetMallocUsage();
16 }
17
18 } // namespace WTF
19
20 #endif // ProcessMetrics_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698