...
1
2
3 package cpu
4
5 import (
6 "context"
7 "runtime"
8
9 "github.com/shirou/gopsutil/internal/common"
10 )
11
12 func Times(percpu bool) ([]TimesStat, error) {
13 return TimesWithContext(context.Background(), percpu)
14 }
15
16 func TimesWithContext(ctx context.Context, percpu bool) ([]TimesStat, error) {
17 return []TimesStat{}, common.ErrNotImplementedError
18 }
19
20 func Info() ([]InfoStat, error) {
21 return InfoWithContext(context.Background())
22 }
23
24 func InfoWithContext(ctx context.Context) ([]InfoStat, error) {
25 return []InfoStat{}, common.ErrNotImplementedError
26 }
27
28 func CountsWithContext(ctx context.Context, logical bool) (int, error) {
29 return runtime.NumCPU(), nil
30 }
31
View as plain text