| Avi Drissman | e4622aa | 2022-09-08 20:36:06 | [diff] [blame] | 1 | // Copyright 2013 The Chromium Authors |
| [email protected] | 32f5e9a0 | 2013-05-23 12:59:54 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. | ||||
| 4 | |||||
| 5 | #include "base/process/process_metrics.h" | ||||
| 6 | |||||
| Eugene But | 5c55d94 | 2020-04-29 00:09:33 | [diff] [blame] | 7 | #include <malloc/malloc.h> |
| [email protected] | 32f5e9a0 | 2013-05-23 12:59:54 | [diff] [blame] | 8 | |
| thestig | 0df2bae8 | 2016-07-26 17:59:36 | [diff] [blame] | 9 | #include "base/memory/ptr_util.h" |
| Dave Tapuska | ebda6a7 | 2023-08-02 18:47:05 | [diff] [blame] | 10 | #include "base/notreached.h" |
| jfroy | 32be1d41 | 2015-04-01 17:10:29 | [diff] [blame] | 11 | |
| [email protected] | 32f5e9a0 | 2013-05-23 12:59:54 | [diff] [blame] | 12 | namespace base { |
| 13 | |||||
| Gyuyoung Kim | 7229950b | 2023-07-21 00:20:43 | [diff] [blame] | 14 | ProcessMetrics::ProcessMetrics(ProcessHandle process) : process_(process) {} |
| [email protected] | 32f5e9a0 | 2013-05-23 12:59:54 | [diff] [blame] | 15 | |
| [email protected] | 32f5e9a0 | 2013-05-23 12:59:54 | [diff] [blame] | 16 | // static |
| thestig | 0df2bae8 | 2016-07-26 17:59:36 | [diff] [blame] | 17 | std::unique_ptr<ProcessMetrics> ProcessMetrics::CreateProcessMetrics( |
| 18 | ProcessHandle process) { | ||||
| 19 | return WrapUnique(new ProcessMetrics(process)); | ||||
| [email protected] | 32f5e9a0 | 2013-05-23 12:59:54 | [diff] [blame] | 20 | } |
| 21 | |||||
| [email protected] | 32f5e9a0 | 2013-05-23 12:59:54 | [diff] [blame] | 22 | } // namespace base |