Skip to content

feat(dev): Add flamegraphs to live dashboard in non-prod#3313

Draft
joshlarson wants to merge 1 commit into
mainfrom
cbjdl/add-flamegraphs-in-non-prod
Draft

feat(dev): Add flamegraphs to live dashboard in non-prod#3313
joshlarson wants to merge 1 commit into
mainfrom
cbjdl/add-flamegraphs-in-non-prod

Conversation

@joshlarson

Copy link
Copy Markdown
Contributor

Scope

No ticket, but this tool has been quite helpful for profiling things like the homepage load times. So far, we've been using it by cherry-picking this commit onto different pieces of work, but I don't see any reason we couldn't just commit it.

Caution

It is very important that flame_on, or flamegraphs in general, not be enabled in production, because it messes with how function calls work and can slow down critical paths. It's currently scoped to not run when Mix.env() is :prod, and the dep is only installed for :dev. We need to make sure to keep it that way.

Screenshots

How to test

Navigate to the Flame On pane in the dashboard and have fun!

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.

2 participants