Skip to content

Conversation

@schneems
Copy link
Collaborator

@schneems schneems commented Nov 4, 2021

You can output profiler data to the tmp directory by running:

$ DEBUG_PERF=1 bundle exec rspec spec/integration/dead_end_spec.rb

Some outputs are in text format, some are html. See https://ruby-prof.github.io/#reports for more info. One interesting one, is the "kcachegrind" interface. To view this on mac:

$ brew install qcachegrind

Open:

$ qcachegrind tmp/<dir>/profile.callgrind.out.14508

You can output profiler data to the `tmp` directory by running:

```
$ DEBUG_PERF=1 bundle exec rspec spec/integration/dead_end_spec.rb
```

Some outputs are in text format, some are html. See https://ruby-prof.github.io/#reports for more info. One interesting one, is the "kcachegrind" interface. To view this on mac:

```
$ brew install qcachegrind
```

Open:

```
$ qcachegrind tmp/<dir>/profile.callgrind.out.14508
```
@schneems schneems merged commit 948ee5c into main Nov 4, 2021
@schneems schneems deleted the schneems/ruby-prof branch November 4, 2021 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants