Skip to content

Commit c9089e4

Browse files
authored
Merge pull request #246 from parca-dev/hover-tooltip
Add graph tooltip documentation
2 parents 78433ac + 6776b86 commit c9089e4

File tree

4 files changed

+45
-1
lines changed

4 files changed

+45
-1
lines changed

docs/graph-tooltip-details.mdx

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Graph Tooltip Details
2+
3+
import BrowserWindow from "@site/src/components/BrowserWindow";
4+
5+
Here are some detailed explanations of the information that is displayed in the graph tooltip.
6+
7+
<BrowserWindow>
8+
9+
![Graph Tooltip](../static/img/tutorial/graph-tooltip.png)
10+
11+
</BrowserWindow>
12+
13+
## Cumulative
14+
15+
This is the total number of times the function has been called. This is the sum of all the samples that have been collected for this function. Cumulative samples are displayed in the graph as a solid line.
16+
17+
## Diff
18+
19+
When in compare mode, the Diff value will display the difference between the number of samples for the function in the current graph and the number of samples for the function in the graph that is being compared to. If the number is positive, it means that the function was called more times in the current graph than in the graph that is being compared to. If the number is negative, it means that the function was called more times in the graph that is being compared to than in the current graph. If the function was called the same number of times in both graphs, then the Diff value will be skipped.
20+
21+
<BrowserWindow>
22+
23+
![Graph Tooltip in Compare mode](../static/img/tutorial/graph-tooltip-diff.png)
24+
25+
</BrowserWindow>
26+
27+
## File
28+
29+
The name of the file that the function is in. If the file is not in the project, it will be displayed as an absolute path. If the file is in the project, it will be displayed as a relative path.
30+
31+
## Address
32+
33+
The address of the function in memory. This is a pointer to the function in memory. The addresses are displayed in hexadecimal and are prefixed with `0x`.
34+
35+
## Binary
36+
37+
The name of the binary that the function is in. Using the [Binary-based Color Stack](./flamegraph-binary-based-colour-stack.mdx) feature, you can identify the most expensive binaries in the rendered flamegraph.
38+
39+
## Build ID
40+
41+
The build ID of the binary that the function is in. The build ID is a unique identifier for the binary. It is used to match the binary to the debug information that is stored in the symbol server.

sidebars.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ module.exports = {
6060
{
6161
type: "category",
6262
label: "Flamegraph",
63-
items: ["flamegraph-binary-based-colour-stack"],
63+
items: [
64+
"flamegraph-binary-based-colour-stack",
65+
"graph-tooltip-details",
66+
],
6467
},
6568
],
6669
},
379 KB
Loading

static/img/tutorial/graph-tooltip.png

192 KB
Loading

0 commit comments

Comments
 (0)