NewStat returns information about current cpu/process statistics. See https://www.kernel.org/doc/Documentation/filesystems/proc.txt Deprecated: Use fs.Stat() instead.
()
| 148 | // |
| 149 | // Deprecated: Use fs.Stat() instead. |
| 150 | func NewStat() (Stat, error) { |
| 151 | fs, err := NewFS(fs.DefaultProcMountPoint) |
| 152 | if err != nil { |
| 153 | return Stat{}, err |
| 154 | } |
| 155 | return fs.Stat() |
| 156 | } |
| 157 | |
| 158 | // NewStat returns information about current cpu/process statistics. |
| 159 | // See: https://www.kernel.org/doc/Documentation/filesystems/proc.txt |