Skip to content

Commit

Permalink
Explain difference between Flame Graph and Stack Chart
Browse files Browse the repository at this point in the history
  • Loading branch information
bensheldon authored Dec 8, 2023
1 parent 639ffa0 commit 71e8140
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ Vernier.trace(out: "time_profile.json") { some_slow_method }

The output can then be viewed in the Firefox Profiler (demo) or the [`profile-viewer` gem](https://github.com/tenderlove/profiler/tree/ruby) (a Ruby-customized version of the firefox profiler.

- **Flame Graph**: Shows proportionally how much time is spent within particular stack frames. Frames are grouped together, which means that x-axis / left-to-right order is not meaningful.
- **Stack Chart**: Shows the stack at each sample with the x-axis representing time and can be read left-to-right.

### Retained memory

Record a flamegraph of all **retained** allocations from loading `irb`.
Expand Down

0 comments on commit 71e8140

Please sign in to comment.