Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: Use speedscope to display flamegraphs and switch from the flamegraph gem to stackprof #475

Merged
merged 1 commit into from
Dec 28, 2020

Conversation

OsamaSayegh
Copy link
Collaborator

Mini Profiler now ships with an embedded copy of speedscope which
provides a very nice experience for viewing flamegraphs.

Flamegraph has been replaced with the stackprof gem. It's an optional
dependency, so if you use the flamegraphs feature, you'll need to add
the stackprof gem to your Gemfile and require it. If you don't use
the feature, you don't need to add anything and Mini Profiler will work
just fine.

image

…amegraph gem to stackprof

Mini Profiler now ships with an embedded copy of speedscope which
provides a very nice experience for viewing flamegraphs.

Flamegraph has been replaced with the stackprof gem. It's an optional
dependency, so if you use the flamegraphs feature, you'll need to add
the `stackprof` gem to your `Gemfile` and require it. If you don't use
the feature, you don't need to add anything and Mini Profiler will work
just fine.
@codecov-io
Copy link

codecov-io commented Dec 25, 2020

Codecov Report

Merging #475 (acd6bfe) into master (f9a991b) will decrease coverage by 0.20%.
The diff coverage is 18.18%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #475      +/-   ##
==========================================
- Coverage   87.89%   87.69%   -0.21%     
==========================================
  Files          18       18              
  Lines        1239     1243       +4     
==========================================
+ Hits         1089     1090       +1     
- Misses        150      153       +3     
Impacted Files Coverage Δ
lib/mini_profiler/profiler.rb 85.14% <18.18%> (-0.54%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9a991b...acd6bfe. Read the comment docs.

@SamSaffron
Copy link
Member

Looks great to me 🎊

Let's add a rake task to update us to latest speedscope rake update:speedscope that way we can get upstream fixes easily.

@SamSaffron SamSaffron merged commit cc78c69 into master Dec 28, 2020
@OsamaSayegh OsamaSayegh deleted the speedscope branch December 30, 2020 18:11
@jlfwong
Copy link

jlfwong commented Jan 15, 2021

Hi! I'm the author of speedscope and just wanted to say that this is awesome! I made an opinionated fork of rack-mini-profiler in the past to do this (https://github.com/jlfwong/rack-mini-profiler), but so happy this is in rack-mini-profiler core now!

@SamSaffron
Copy link
Member

SamSaffron commented Jan 15, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants