You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/development/build.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,10 +44,42 @@ To enable `libimpctl` support `GO_FLAGS` variable must be set:
44
44
$GOPATH/src/github.com/google/cadvisor $ GO_FLAGS="-tags=libipmctl,netgo" make build
45
45
```
46
46
47
+
### Perf Support
48
+
49
+
cAdvisor can be linked against [libpfm4](http://perfmon2.sourceforge.net/) library that allows to gather information about performance monitoring events.
50
+
If you want to build cAdvisor with libpfm4 support you must meet following requirements:
51
+
*`libpfm4-dev` must be installed on build system.
52
+
*`libpfm4` must be installed on all systems where cAdvisor is running.
53
+
54
+
libpfm4 packages are available in Debian- and RHEL-derivatives distributions.
55
+
56
+
libpfm4 can be installed using apt package manager:
57
+
```
58
+
apt-get install libpfm4 libpfm4-dev
59
+
```
60
+
or yum package manager:
61
+
```
62
+
yum install libpfm libpfm-devel
63
+
```
64
+
65
+
To enable `libpfm4` support `GO_FLAGS` variable must be set:
66
+
67
+
```
68
+
$GOPATH/src/github.com/google/cadvisor $ GO_FLAGS="-tags=libpfm,netgo" make build
It is required to include perf config (examplary config is available [here](../../perf/testing/perf-non-hardware.json)) to run cAdvisor with performance monitoring events:
0 commit comments