Skip to content

Commit e0b933b

Browse files
Update memx.go
1 parent 923be32 commit e0b933b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

memx.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ import (
88
"strings"
99
)
1010

11-
// GetMemoryUsage returns the calling process' internal + shared
12-
// memory usage in kB. Linux-specific as it reads /proc/.
13-
// Ref: https://en.wikipedia.org/wiki/Proportional_set_size
11+
// GetMemoryUsage returns the calling process' internal + shared memory usage in kB.
1412
func GetMemoryUsage() (uint64, error) {
1513
f, err := os.Open(fmt.Sprintf("/proc/%d/smaps", os.Getpid()))
1614
if err != nil {

0 commit comments

Comments
 (0)