[#1407] chore(rust): add cpu profile doc (#1515)
### What changes were proposed in this pull request?
add cpu profile doc
### Why are the changes needed?
Subtask for #1407
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Needn't
diff --git a/rust/experimental/server/README.md b/rust/experimental/server/README.md
index 73e88da..7c83cc9 100644
--- a/rust/experimental/server/README.md
+++ b/rust/experimental/server/README.md
@@ -169,4 +169,20 @@
2. Start with profile
```shell
_RJEM_MALLOC_CONF=prof:true,prof_prefix:jeprof.out ./uniffle-worker
- ```
\ No newline at end of file
+ ```
+
+### CPU Profiling
+1. build with jemalloc feature
+ ```shell
+ cargo build --release --features jemalloc
+ ```
+2. Paste following command to get cpu profile flamegraph
+ ```shell
+ go tool pprof -http="0.0.0.0:8081" http://{remote_ip}:8080/debug/pprof/profile?seconds=30
+ ```
+ - localhost:8080: riffle server.
+ - remote_ip: pprof server address.
+ - seconds=30: Profiling lasts for 30 seconds.
+
+ Then open the URL <your-ip>:8081/ui/flamegraph in your browser to view the flamegraph:
+
\ No newline at end of file