File tree Expand file tree Collapse file tree 3 files changed +27
-1
lines changed
Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 1+ // Copyright 2020 New Relic Corporation. All rights reserved.
2+ // SPDX-License-Identifier: Apache-2.0
3+
4+ //go:build js && wasm
5+
6+ package sysinfo
7+
8+ import "errors"
9+
10+ // PhysicalMemoryBytes returns the total amount of host memory.
11+ func PhysicalMemoryBytes () (uint64 , error ) {
12+ return 0 , errors .New ("unsupported js/wasm arch" )
13+ }
Original file line number Diff line number Diff line change 1+ // Copyright 2020 New Relic Corporation. All rights reserved.
2+ // SPDX-License-Identifier: Apache-2.0
3+
4+ //go:build js && wasm
5+
6+ package sysinfo
7+
8+ import "errors"
9+
10+ // GetUsage gathers process times.
11+ func GetUsage () (Usage , error ) {
12+ return Usage {}, errors .New ("unsupported js/wasm arch" )
13+ }
Original file line number Diff line number Diff line change 11// Copyright 2020 New Relic Corporation. All rights reserved.
22// SPDX-License-Identifier: Apache-2.0
33
4- // + build !windows
4+ //go: build !windows && !(js && wasm)
55
66package sysinfo
77
You can’t perform that action at this time.
0 commit comments