Skip to content

Commit f007c26

Browse files
authored
Merge pull request #241 from parca-dev/binary-based-color-stack
doc: Adding doc on flamegraph's binary-based colour stack
2 parents 4584d28 + d6f1f16 commit f007c26

File tree

5 files changed

+51
-0
lines changed

5 files changed

+51
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Binary-based Color Stack
2+
3+
import BrowserWindow from '@site/src/components/BrowserWindow';
4+
5+
For quick troubleshooting, you can use the binary-based color stack mode to quickly identify the most expensive binaries in the rendered flamegraph. In binary-based color stack mode, the colour of a node in the flamegraph is based on the
6+
binary that the function belongs to. This way, you can quickly identify the most expensive binaries in the given profile.
7+
8+
### How to use it
9+
Open the User Preferences dialog by clicking the gear icon in the top-right corner of the UI.
10+
11+
<BrowserWindow>
12+
13+
![User Preferences Option](../static/img/parca/user-preferences-icon.png)
14+
</BrowserWindow>
15+
<br />
16+
17+
In the User Preferences dialog, select your preferred color profile in the `Flamegraph Color Profile` section and click `Close`.
18+
19+
20+
<BrowserWindow>
21+
22+
![Color Profile Selection](../static/img/parca/color-profile-selection.gif)
23+
24+
</BrowserWindow>
25+
<br />
26+
27+
:::tip
28+
You can always switch back to the `Default` color profile to disable the binary-based color stack mode.
29+
:::
30+
31+
<br />
32+
33+
You can also click on the `Binary` names at the top to highlight the nodes corresponding to that binary in the flamegraph.
34+
35+
<BrowserWindow>
36+
37+
![Highlighting Nodes From a Binary](../static/img/parca/highlighting-nodes-from-binary.png)
38+
39+
</BrowserWindow>
40+
<br />

sidebars.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ module.exports = {
4141
},
4242
"observability",
4343
"configuration",
44+
{
45+
type: "category",
46+
label: "Profile Visualization",
47+
items: [
48+
{
49+
type: "category",
50+
label: "Flamegraph",
51+
items: ["flamegraph-binary-based-colour-stack"],
52+
},
53+
],
54+
},
4455
],
4556
},
4657
{
1.73 MB
Loading
876 KB
Loading
148 KB
Loading

0 commit comments

Comments
 (0)