Skip to content

Commit

Permalink
Add profiler test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Mar 6, 2024
1 parent e8fd327 commit 36a079e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@
gem "bake-test"
gem "bake-test-external"
end

gem "stackprof"
8 changes: 8 additions & 0 deletions test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require 'stackprof'
require_relative 'lib/console'

StackProf.run(mode: :cpu, interval: 10, out: 'profile.stackprof') do
100_000.times do
Console.logger.info self, "Hello World"
end
end

0 comments on commit 36a079e

Please sign in to comment.