Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby -rprofile
- #Just the instatiation:
- handler = ScopeHandler.new(line)
- % cumulative self self total
- time seconds seconds calls ms/call ms/call name
- 30.07 5.23 5.23 1 5230.00 17370.00 ScopefileParser#each
- 19.72 8.66 3.43 3611 0.95 1.77 ScopefileParser#pull
- 8.80 10.19 1.53 7223 0.21 0.26 ScopefileParser#eof?
- 7.53 11.50 1.31 7434 0.18 5.19 Class#new
- 4.95 12.36 0.86 2477 0.35 0.88 ScopeNode#initialize
- 4.03 13.06 0.70 3611 0.19 0.19 String#slice!
- #+ upScope
- location = [ENV['TM_LINE_NUMBER'].to_i,ENV['TM_LINE_INDEX'].to_i+1]
- node = handler.upScope(nil, location)
- print node.data
- % cumulative self self total
- time seconds seconds calls ms/call ms/call name
- 19.87 4.94 4.94 1 4940.00 17410.00 ScopefileParser#each
- 15.12 8.70 3.76 2477 1.52 18.83 ScopeNode#each
- 14.92 12.41 3.71 3611 1.03 1.77 ScopefileParser#pull
- 7.24 14.21 1.80 2478 0.73 16.72 Array#each
- 5.99 15.70 1.49 7223 0.21 0.26 ScopefileParser#eof?
- 5.91 17.17 1.47 7434 0.20 5.25 Class#new
- 5.03 18.42 1.25 2477 0.50 1.01 ScopeNode#initialize
- 3.82 19.37 0.95 2477 0.38 0.72 ScopeNode#text?
Add Comment
Please, Sign In to add comment