Questions tagged [flamegraph]

Flame graphs are a visualization of profiled software, allowing the most frequent code-paths to be identified quickly and accurately — Brendan Gregg

Flame graphs are a visualization of profiled software, allowing the most frequent code-paths to be identified quickly and accurately.

enter image description here

The x-axis shows the stack profile population, sorted alphabetically (it is not the passage of time), and the y-axis shows stack depth. Each rectangle represents a stack frame. The wider a frame is, the more often it was present in the stacks. The top edge shows what is on-CPU, and beneath it is its ancestry. The colors are usually not significant, picked randomly to differentiate frames.

This visualization is fully introduced and explained in the CPU Flame Graphs page, and in Brendan Gregg presentation.

63 questions
1
vote
1 answer

Why is systemtap not generating the output necessary for flamegraph creation?

When executing stap for the purposes of generating flamegraph data, why is my out.stap-stacks missing process data? OS: RHEL 5.10.0.2 Kernel: 2.6.18-371.11.1.el5 SystemTap: 1.8-6.el5 Packages…
1
vote
1 answer

How to use linux perf tool for code comprehension

I'm fascinated by the ability of 'perf' to record call graphs and am trying to understand how to use it to understand a new code base. I compiled the code in debug mode, and ran unit tests using the following command: perf record --call-graph dwarf…
Shahbaz
  • 10,395
  • 21
  • 54
  • 83
0
votes
0 answers

How to create CPU Flame Graphs for Delphi applications?

I would like to visualize CPU usage of my Delphi application as a Flame Graph image. To make it work a periodical dump of the function names existing on the call stack is required. How can I make a dump of the application call stack in Delphi and…
blerontin
  • 2,892
  • 5
  • 34
  • 60
0
votes
0 answers

How to render an interactive SVG image on React?

So I currently have a Flamegraph svg image rendered on my webpage (crossed out of a lot personal info with blue ink, but that shouldn't matter for the purposes of this question): The problem is that Flamegraphs are supposed to be interactive, and…
Yajax
  • 31
  • 6
0
votes
1 answer

What does it mean when a child span is longer than the parent span in Datadog trace flame graph?

I'm struggling to interpret this output from a trace of a java service for kafka.consume in Datadog. I would expect the parent (kafka.consume) to span the entire duration of the child spans: You can see the kafka.consume is tracked as 14.9 s…
Funsaized
  • 1,972
  • 4
  • 21
  • 41
0
votes
1 answer

What is the relationship between flame graph and ebpf?

flame graph based on ebpf ? What is the relationship between flame graph and ebpf ?
rocco
  • 21
  • 4
0
votes
1 answer

Can you turn Elasticsearch Profile API output into a flame graph?

We've been using Flame Graph recently for CPU profiling. Is there a converter for turning Elasticsearch Profile API output into a Flame Graph (or will I need to write one?) I looked at Brendan Gregg's Flame Graph project, but I didn't see any…
k-den
  • 853
  • 13
  • 28
0
votes
1 answer

Rust and Flamegraph: Bunch of errors when installing using cargo

I wanted to install flamegraph for Rust. Following the instructions available in the README I run cargo install flamegraph. However, at some point it throws a bunch of errors: Compiling env_logger v0.8.3 Compiling atty v0.2.14 Compiling num_cpus…
Ziva
  • 3,181
  • 15
  • 48
  • 80
0
votes
1 answer

Removing d3-flame-graph when loading new data

Recently I picked up a project that has d3-flame-graph on it and the graph is displayed according to the Filters defined on another component. My issue is that when searching with new parameters I can't seem to clean the previous chart and I was…
ItzaMi
  • 340
  • 6
  • 22
0
votes
0 answers

Embed html FlameGraph into Azure wiki

I need to embed app Flame Graph into Azure Devops wiki page. FlameGraph is an visualization of an app's call stack in a very simple and understandable form. Physically it is a SVG image which is rendered by browser like this (clickable): However, I…
Suncatcher
  • 10,355
  • 10
  • 52
  • 90
0
votes
0 answers

How to record performance flame graph without minimized names?

We're trying to record performance data on a production environment, but given that everything is minified the flame graph generated uses the minified names. Is there a way for the flame graph to use the unminified names? I've been trying with a…
Max
  • 469
  • 4
  • 7
0
votes
0 answers

How to enable visualization of kubelet call stack on perf profile?

I'm trying to do root-cause analysis for an issue. The cpu perf profile looks like this- Apparently, more time is used by kubelet and dockerd. But the stack below has [unknown] symbols. How can I enable visualization of entire stack so as to find…
Swapnil Patel
  • 757
  • 1
  • 7
  • 9
0
votes
0 answers

process spend too much time blocking at select.go with no explicit corresponding operation

I'm trying to figure out the bottleneck of my program. Accroding to the benchmark result, the process is blocked at line 485 of runtime/select.go for a considerably long time which is caused by http.(*persistConn).writeLoop, but I have no idea of…
Alex
  • 335
  • 2
  • 12
0
votes
1 answer

Generating flame graphs for a whole Java program execution

I'm trying to generate a Flame Graph for a Java program, using perf-map-agent. I know that you can use perf-java-record-stack to record data for a running process. I have also found out that you may use the script jmaps in the Flame Graph directory.…
Malin
  • 771
  • 1
  • 7
  • 16
0
votes
0 answers

java application response is too long ,how does this flame graph implies?

Here is a java application which accepts picture uploaded using base64, next to request another service by the base64, but the response time is too long, above 4-20s. What does the graph implies?