Thanks to visit codestin.com
Credit goes to chromium.googlesource.com

blob: 3f8e0ca275678f6aad0fb72d020f9be7d3e260d9 [file] [log] [blame]
Avi Drissmane4622aa2022-09-08 20:36:061// Copyright 2013 The Chromium Authors
[email protected]32f5e9a02013-05-23 12:59:542// 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 But5c55d942020-04-29 00:09:337#include <malloc/malloc.h>
[email protected]32f5e9a02013-05-23 12:59:548
thestig0df2bae82016-07-26 17:59:369#include "base/memory/ptr_util.h"
Dave Tapuskaebda6a72023-08-02 18:47:0510#include "base/notreached.h"
jfroy32be1d412015-04-01 17:10:2911
[email protected]32f5e9a02013-05-23 12:59:5412namespace base {
13
Gyuyoung Kim7229950b2023-07-21 00:20:4314ProcessMetrics::ProcessMetrics(ProcessHandle process) : process_(process) {}
[email protected]32f5e9a02013-05-23 12:59:5415
[email protected]32f5e9a02013-05-23 12:59:5416// static
thestig0df2bae82016-07-26 17:59:3617std::unique_ptr<ProcessMetrics> ProcessMetrics::CreateProcessMetrics(
18 ProcessHandle process) {
19 return WrapUnique(new ProcessMetrics(process));
[email protected]32f5e9a02013-05-23 12:59:5420}
21
[email protected]32f5e9a02013-05-23 12:59:5422} // namespace base