Guest User

Untitled

a guest
Feb 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. #!/usr/bin/env ruby -rprofile
  2. #Just the instatiation:
  3. handler = ScopeHandler.new(line)
  4.  
  5. % cumulative self self total
  6. time seconds seconds calls ms/call ms/call name
  7. 30.07 5.23 5.23 1 5230.00 17370.00 ScopefileParser#each
  8. 19.72 8.66 3.43 3611 0.95 1.77 ScopefileParser#pull
  9. 8.80 10.19 1.53 7223 0.21 0.26 ScopefileParser#eof?
  10. 7.53 11.50 1.31 7434 0.18 5.19 Class#new
  11. 4.95 12.36 0.86 2477 0.35 0.88 ScopeNode#initialize
  12. 4.03 13.06 0.70 3611 0.19 0.19 String#slice!
  13.  
  14. #+ upScope
  15. location = [ENV['TM_LINE_NUMBER'].to_i,ENV['TM_LINE_INDEX'].to_i+1]
  16. node = handler.upScope(nil, location)
  17. print node.data
  18.  
  19. % cumulative self self total
  20. time seconds seconds calls ms/call ms/call name
  21. 19.87 4.94 4.94 1 4940.00 17410.00 ScopefileParser#each
  22. 15.12 8.70 3.76 2477 1.52 18.83 ScopeNode#each
  23. 14.92 12.41 3.71 3611 1.03 1.77 ScopefileParser#pull
  24. 7.24 14.21 1.80 2478 0.73 16.72 Array#each
  25. 5.99 15.70 1.49 7223 0.21 0.26 ScopefileParser#eof?
  26. 5.91 17.17 1.47 7434 0.20 5.25 Class#new
  27. 5.03 18.42 1.25 2477 0.50 1.01 ScopeNode#initialize
  28. 3.82 19.37 0.95 2477 0.38 0.72 ScopeNode#text?
Add Comment
Please, Sign In to add comment