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/source/library-user-guide/profiling.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@
21
21
22
22
The section contains examples how to perform CPU profiling for Apache DataFusion on different operating systems.
23
23
24
-
###Building a flamegraph
24
+
## Building a flamegraph
25
25
26
26
[Video: how to CPU profile DataFusion with a Flamegraph](https://youtu.be/2z11xtYw_xs)
27
27
@@ -34,19 +34,19 @@ in images such as this:
34
34
35
35
## MacOS
36
36
37
-
####Step 1: Install the flamegraph Tool
37
+
### Step 1: Install the flamegraph Tool
38
38
39
39
To install flamegraph, run:
40
40
41
41
```shell
42
42
cargo install flamegraph
43
43
```
44
44
45
-
####Step 2: Prepare Your Environment
45
+
### Step 2: Prepare Your Environment
46
46
47
47
Ensure that you're in the directory containing the necessary data files for your DataFusion query. The flamegraph tool will profile the execution of your query against this data.
48
48
49
-
####Step 3: Running the Flamegraph Tool
49
+
### Step 3: Running the Flamegraph Tool
50
50
51
51
To generate a flamegraph, you'll need to use the -- separator to pass arguments to the binary you're profiling. For datafusion-cli, you need to make sure to run the command with sudo permissions (especially on macOS, where DTrace requires elevated privileges).
0 commit comments