| 6 |
| 7 | #include <lib/fdio/limits.h> |
| 8 |
| 9 | namespace base { |
| 10 |
| 11 | size_t GetMaxFds() { |
| 12 | return FDIO_MAX_FD; |
| 13 | } |
| 14 |
| 15 | size_t GetHandleLimit() { |
| 16 | // Duplicated from the internal Magenta kernel constant kMaxHandleCount |
| 17 | // (zircon/kernel/object/handle.cc). |
| 18 | return 256 * 1024u; |
| 19 | } |
| 20 |
| 21 | size_t GetSystemCommitCharge() { |
| 22 | // TODO(https://crbug.com/926581): Fuchsia does not support this. |
| 23 | return 0; |
| 24 | } |
| 25 |
| 26 | // static |
| 27 | std::unique_ptr<ProcessMetrics> ProcessMetrics::CreateProcessMetrics( |
| 28 | ProcessHandle process) { |
| 29 | // TODO(https://crbug.com/926581). |
| 30 | return nullptr; |
| 31 | } |
| 32 |
| 33 | TimeDelta ProcessMetrics::GetCumulativeCPUUsage() { |
| 34 | // TODO(https://crbug.com/926581). |
| 35 | return TimeDelta(); |
| 36 | } |
| 37 |
| 38 | bool GetSystemMemoryInfo(SystemMemoryInfoKB* meminfo) { |
| 39 | // TODO(https://crbug.com/926581). |
| 40 | return false; |
| 41 | } |
| 42 |
| 43 | } // namespace base |
| 44 |