hcache
hcache copied to clipboard
使用hcache -top 10时报错,could not open '/proc/22621/maps'
使用hcache -top 10命令时,报错,报错如下: could not open '/proc/22621/maps' for read: open /proc/22621/maps: no such file or directory
感觉很久没维护了,可以自己手动改下源码 main.go的getPidMaps log.Fatalf("could not open '%s' for read: %v", fname, err) 改成 log.Printf("could not open '%s' for read: %v", fname, err) return nil 然后调用的地方判断下就好了 maps := getPidMaps(pidFlag) if maps != nil { files = append(files, maps...) }