Skip to content

Commit a0c6b8a

Browse files
authored
[BOLT][docs] Add merge-fdata to Linux optimization guide (llvm#97659)
1 parent 94471e7 commit a0c6b8a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bolt/docs/OptimizingLinux.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ $ perf2bolt -p perf.data -o perf.fdata vmlinux
4444

4545
Under a high load, `perf.data` should be several gigabytes in size and you should expect the converted `perf.fdata` not to exceed 100 MB.
4646

47+
Profiles collected from multiple workloads could be joined into a single profile using `merge-fdata` utility:
48+
```bash
49+
$ merge-fdata perf.1.fdata perf.2.fdata ... perf.<N>.fdata > perf.merged.fdata
50+
```
51+
4752
Two changes are required for the kernel build. The first one is optional but highly recommended. It introduces a BOLT-reserved space into `vmlinux` code section:
4853

4954

0 commit comments

Comments
 (0)