profiling/README.md
Build Surreal with the bench profile (preserving symbols).
cargo run --profile bench --features=storage-mem -- start --user root --pass root memory
Run the profiler.
./profiling/profile.sh
You may want to use Surrealist, or a bench to generate some load.
Eg. from benchmarking/crud-bench:
cargo run -r -- -d surrealdb -s 1000 -t 2
Press Ctrl+D to stop SurrealDB and display the profiling results.
The results are stored in the target/profiling directory.
The raw output of dtrace
The output of dtrace with demangled function names.
Each line corresponds to a function and includes the following columns:
Function sorted by descending average CPU time.
Each line is a function, with the following columns:
Function sorted by descending total CPU time.
Each line includes the following columns: