docs(profile): add information about compile (#66)

This commit is contained in:
Ruidong-X
2023-08-19 23:19:52 +08:00
committed by GitHub
parent 5055d062dc
commit 86052be6cb
2 changed files with 4 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ libbpf 是一个用于与 eBPF 交互的 C 库。它提供了创建、加载和
在本示例中,可以通过 libbpf 库编译运行它(以 Ubuntu/Debian 为例):
**NOTE:** 首先需要安装 `cargo` 才能编译得到 `profile`, 安装方法可以参考[Cargo 手册](https://rustwiki.org/en/cargo/getting-started/installation.html)
```console
$ git submodule update --init --recursive
$ sudo apt install clang libelf1 libelf-dev zlib1g-dev

View File

@@ -17,6 +17,8 @@ This information helps developers locate performance bottlenecks and optimize co
In this example, you can compile and run it with the libbpf library (using Ubuntu/Debian as an example):
**NOTE:** To compile the `profile`, you first need to install `Cargo`, as shown in ["The Cargo Book"](https://rustwiki.org/en/cargo/getting-started/installation.html)
```console
$ git submodule update --init --recursive
$ sudo apt install clang libelf1 libelf-dev zlib1g-dev