OLD | NEW |
(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 |
OLD | NEW |