blob: fc9b0c46eeee8c5ea8ec97b8a122abb31d09f4e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/process/process_metrics.h"
#include <lib/fdio/limits.h>
#include "base/notreached.h"
namespace base {
size_t GetMaxFds() {
return FDIO_MAX_FD;
}
size_t GetHandleLimit() {
// Duplicated from the internal Magenta kernel constant kMaxHandleCount
// (zircon/kernel/object/handle.cc).
return 256 * 1024u;
}
size_t GetSystemCommitCharge() {
// TODO(https://crbug.com/926581): Fuchsia does not support this.
return 0;
}
// static
std::unique_ptr<ProcessMetrics> ProcessMetrics::CreateProcessMetrics(
ProcessHandle process) {
// TODO(https://crbug.com/926581).
return nullptr;
}
TimeDelta ProcessMetrics::GetCumulativeCPUUsage() {
// TODO(https://crbug.com/926581).
return TimeDelta();
}
bool ProcessMetrics::GetCumulativeCPUUsagePerThread(CPUUsagePerThread&) {
// TODO(https://crbug.com/926581).
NOTIMPLEMENTED();
return false;
}
bool GetSystemMemoryInfo(SystemMemoryInfoKB* meminfo) {
// TODO(https://crbug.com/926581).
return false;
}
} // namespace base
|