mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
add profile rake task
This commit is contained in:
parent
1e7eb146c9
commit
6a0aff7e19
1 changed files with 7 additions and 0 deletions
7
Rakefile
7
Rakefile
|
@ -38,6 +38,13 @@ task :test do
|
|||
sh "bacon -Itest -rubygems -a -q"
|
||||
end
|
||||
|
||||
desc "profile pry's startup time"
|
||||
task :profile do
|
||||
require 'profile'
|
||||
require 'pry'
|
||||
Pry.start(TOPLEVEL_BINDING, :input => StringIO.new('exit'))
|
||||
end
|
||||
|
||||
desc "run pry"
|
||||
task :pry do
|
||||
load 'bin/pry'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue