Skip to content

Various fixes #37

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 21 additions & 16 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,32 @@ on:
pull_request:
branches: [ master ]

# Cancel any in-progress job or run
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version:
- '2.7'
- '3.0'
- '3.2'
- '3.3'
- '3.4'
- head

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install graphviz
run: sudo apt-get install -y graphviz
- name: Run tests
run: bundle exec rspec
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
cache-version: 1 # Increment to clear cache.
- name: Install graphviz
run: sudo apt-get update && sudo apt-get install -y graphviz
- name: Run tests
run: bundle exec rspec
87 changes: 0 additions & 87 deletions Gemfile.lock

This file was deleted.

5 changes: 3 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ task :make_dump do
end

StackProf.run(mode: :cpu, out: 'spec/fixtures/test.dump') do
1000.times { DummyB.new.work }
Array.new(1000).each { DummyB.new.work }

end

StackProf.run(mode: :cpu, raw: true, out: 'spec/fixtures/test-raw.dump') do
1000.times { DummyB.new.work }
Array.new(1000).each { DummyB.new.work }
end
end
4 changes: 3 additions & 1 deletion bin/stackprof-webnav
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ parser.parse!
server = StackProf::Webnav::Server
server.cmd_options = options

Rack::Handler.pick(['thin', 'webrick']).run server.new, :Host => options[:addr], :Port => options[:port]
# Backwards compatibility with Rack::Handler.
handler = defined?(Rackup::Handler) ? Rackup::Handler : Rack::Handler
handler.pick(['thin', 'webrick']).run server.new, :Host => options[:addr], :Port => options[:port]
Loading