ruby-prof-danielhoey 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +221 -0
 - data/LICENSE +23 -0
 - data/README +432 -0
 - data/Rakefile +158 -0
 - data/bin/ruby-prof +224 -0
 - data/examples/flat.txt +55 -0
 - data/examples/graph.html +823 -0
 - data/examples/graph.txt +170 -0
 - data/ext/ruby_prof/call_tree.c +392 -0
 - data/ext/ruby_prof/call_tree.h +32 -0
 - data/ext/ruby_prof/extconf.rb +40 -0
 - data/ext/ruby_prof/list.c +66 -0
 - data/ext/ruby_prof/list.h +10 -0
 - data/ext/ruby_prof/measure_allocations.h +58 -0
 - data/ext/ruby_prof/measure_cpu_time.h +152 -0
 - data/ext/ruby_prof/measure_gc_runs.h +76 -0
 - data/ext/ruby_prof/measure_gc_time.h +57 -0
 - data/ext/ruby_prof/measure_memory.h +101 -0
 - data/ext/ruby_prof/measure_process_time.h +52 -0
 - data/ext/ruby_prof/measure_wall_time.h +53 -0
 - data/ext/ruby_prof/measurement.h +13 -0
 - data/ext/ruby_prof/mingw/Rakefile +23 -0
 - data/ext/ruby_prof/mingw/build.rake +38 -0
 - data/ext/ruby_prof/ruby_prof.c +1943 -0
 - data/ext/ruby_prof/ruby_prof.h +183 -0
 - data/ext/ruby_prof/version.h +4 -0
 - data/lib/ruby-prof.rb +59 -0
 - data/lib/ruby-prof/abstract_printer.rb +41 -0
 - data/lib/ruby-prof/aggregate_call_info.rb +62 -0
 - data/lib/ruby-prof/call_info.rb +47 -0
 - data/lib/ruby-prof/call_tree/abstract_printer.rb +24 -0
 - data/lib/ruby-prof/call_tree/html_printer.rb +89 -0
 - data/lib/ruby-prof/call_tree/html_printer_output.html.erb +99 -0
 - data/lib/ruby-prof/call_tree/text_printer.rb +28 -0
 - data/lib/ruby-prof/call_tree_printer.rb +84 -0
 - data/lib/ruby-prof/flat_printer.rb +78 -0
 - data/lib/ruby-prof/flat_printer_with_line_numbers.rb +72 -0
 - data/lib/ruby-prof/graph_html_printer.rb +256 -0
 - data/lib/ruby-prof/graph_printer.rb +157 -0
 - data/lib/ruby-prof/method_info.rb +111 -0
 - data/lib/ruby-prof/symbol_to_proc.rb +8 -0
 - data/lib/ruby-prof/task.rb +146 -0
 - data/lib/ruby-prof/test.rb +148 -0
 - data/lib/unprof.rb +8 -0
 - data/rails/environment/profile.rb +24 -0
 - data/rails/example/example_test.rb +9 -0
 - data/rails/profile_test_helper.rb +21 -0
 - data/test/aggregate_test.rb +121 -0
 - data/test/basic_test.rb +290 -0
 - data/test/current_failures_windows +8 -0
 - data/test/do_nothing.rb +0 -0
 - data/test/duplicate_names_test.rb +32 -0
 - data/test/enumerable_test.rb +16 -0
 - data/test/exceptions_test.rb +15 -0
 - data/test/exclude_threads_test.rb +54 -0
 - data/test/exec_test.rb +14 -0
 - data/test/line_number_test.rb +73 -0
 - data/test/measurement_test.rb +121 -0
 - data/test/module_test.rb +54 -0
 - data/test/no_method_class_test.rb +14 -0
 - data/test/prime.rb +58 -0
 - data/test/prime_test.rb +13 -0
 - data/test/printers_test.rb +130 -0
 - data/test/recursive_test.rb +275 -0
 - data/test/ruby-prof-bin +20 -0
 - data/test/singleton_test.rb +37 -0
 - data/test/stack_test.rb +138 -0
 - data/test/start_stop_test.rb +95 -0
 - data/test/test_suite.rb +23 -0
 - data/test/thread_test.rb +173 -0
 - data/test/unique_call_path_test.rb +225 -0
 - metadata +163 -0
 
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,163 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification 
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: ruby-prof-danielhoey
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version 
         
     | 
| 
      
 4 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 5 
     | 
    
         
            +
              segments: 
         
     | 
| 
      
 6 
     | 
    
         
            +
              - 0
         
     | 
| 
      
 7 
     | 
    
         
            +
              - 8
         
     | 
| 
      
 8 
     | 
    
         
            +
              - 1
         
     | 
| 
      
 9 
     | 
    
         
            +
              version: 0.8.1
         
     | 
| 
      
 10 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 11 
     | 
    
         
            +
            authors: 
         
     | 
| 
      
 12 
     | 
    
         
            +
            - Shugo Maeda, Charlie Savage, Roger Pack, Daniel Hoey
         
     | 
| 
      
 13 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 14 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 15 
     | 
    
         
            +
            cert_chain: []
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            date: 2010-07-28 00:00:00 +10:00
         
     | 
| 
      
 18 
     | 
    
         
            +
            default_executable: 
         
     | 
| 
      
 19 
     | 
    
         
            +
            dependencies: 
         
     | 
| 
      
 20 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency 
         
     | 
| 
      
 21 
     | 
    
         
            +
              name: os
         
     | 
| 
      
 22 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 23 
     | 
    
         
            +
              requirement: &id001 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 24 
     | 
    
         
            +
                requirements: 
         
     | 
| 
      
 25 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 26 
     | 
    
         
            +
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 27 
     | 
    
         
            +
                    segments: 
         
     | 
| 
      
 28 
     | 
    
         
            +
                    - 0
         
     | 
| 
      
 29 
     | 
    
         
            +
                    version: "0"
         
     | 
| 
      
 30 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 31 
     | 
    
         
            +
              version_requirements: *id001
         
     | 
| 
      
 32 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency 
         
     | 
| 
      
 33 
     | 
    
         
            +
              name: rake-compiler
         
     | 
| 
      
 34 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 35 
     | 
    
         
            +
              requirement: &id002 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 36 
     | 
    
         
            +
                requirements: 
         
     | 
| 
      
 37 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 38 
     | 
    
         
            +
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 39 
     | 
    
         
            +
                    segments: 
         
     | 
| 
      
 40 
     | 
    
         
            +
                    - 0
         
     | 
| 
      
 41 
     | 
    
         
            +
                    version: "0"
         
     | 
| 
      
 42 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 43 
     | 
    
         
            +
              version_requirements: *id002
         
     | 
| 
      
 44 
     | 
    
         
            +
            description: |
         
     | 
| 
      
 45 
     | 
    
         
            +
              ruby-prof is a fast code profiler for Ruby. It is a C extension and
         
     | 
| 
      
 46 
     | 
    
         
            +
              therefore is many times faster than the standard Ruby profiler. It
         
     | 
| 
      
 47 
     | 
    
         
            +
              supports both flat and graph profiles.  For each method, graph profiles
         
     | 
| 
      
 48 
     | 
    
         
            +
              show how long the method ran, which methods called it and which 
         
     | 
| 
      
 49 
     | 
    
         
            +
              methods it called. RubyProf generate both text and html and can output
         
     | 
| 
      
 50 
     | 
    
         
            +
              it to standard out or to a file.
         
     | 
| 
      
 51 
     | 
    
         
            +
             
     | 
| 
      
 52 
     | 
    
         
            +
            email: danielhoey1@gmail.com
         
     | 
| 
      
 53 
     | 
    
         
            +
            executables: 
         
     | 
| 
      
 54 
     | 
    
         
            +
            - ruby-prof
         
     | 
| 
      
 55 
     | 
    
         
            +
            extensions: 
         
     | 
| 
      
 56 
     | 
    
         
            +
            - ext/ruby_prof/extconf.rb
         
     | 
| 
      
 57 
     | 
    
         
            +
            extra_rdoc_files: []
         
     | 
| 
      
 58 
     | 
    
         
            +
             
     | 
| 
      
 59 
     | 
    
         
            +
            files: 
         
     | 
| 
      
 60 
     | 
    
         
            +
            - Rakefile
         
     | 
| 
      
 61 
     | 
    
         
            +
            - README
         
     | 
| 
      
 62 
     | 
    
         
            +
            - LICENSE
         
     | 
| 
      
 63 
     | 
    
         
            +
            - CHANGES
         
     | 
| 
      
 64 
     | 
    
         
            +
            - bin/ruby-prof
         
     | 
| 
      
 65 
     | 
    
         
            +
            - examples/flat.txt
         
     | 
| 
      
 66 
     | 
    
         
            +
            - examples/graph.html
         
     | 
| 
      
 67 
     | 
    
         
            +
            - examples/graph.txt
         
     | 
| 
      
 68 
     | 
    
         
            +
            - ext/ruby_prof/call_tree.c
         
     | 
| 
      
 69 
     | 
    
         
            +
            - ext/ruby_prof/list.c
         
     | 
| 
      
 70 
     | 
    
         
            +
            - ext/ruby_prof/ruby_prof.c
         
     | 
| 
      
 71 
     | 
    
         
            +
            - ext/ruby_prof/call_tree.h
         
     | 
| 
      
 72 
     | 
    
         
            +
            - ext/ruby_prof/list.h
         
     | 
| 
      
 73 
     | 
    
         
            +
            - ext/ruby_prof/measure_allocations.h
         
     | 
| 
      
 74 
     | 
    
         
            +
            - ext/ruby_prof/measure_cpu_time.h
         
     | 
| 
      
 75 
     | 
    
         
            +
            - ext/ruby_prof/measure_gc_runs.h
         
     | 
| 
      
 76 
     | 
    
         
            +
            - ext/ruby_prof/measure_gc_time.h
         
     | 
| 
      
 77 
     | 
    
         
            +
            - ext/ruby_prof/measure_memory.h
         
     | 
| 
      
 78 
     | 
    
         
            +
            - ext/ruby_prof/measure_process_time.h
         
     | 
| 
      
 79 
     | 
    
         
            +
            - ext/ruby_prof/measure_wall_time.h
         
     | 
| 
      
 80 
     | 
    
         
            +
            - ext/ruby_prof/measurement.h
         
     | 
| 
      
 81 
     | 
    
         
            +
            - ext/ruby_prof/ruby_prof.h
         
     | 
| 
      
 82 
     | 
    
         
            +
            - ext/ruby_prof/version.h
         
     | 
| 
      
 83 
     | 
    
         
            +
            - ext/ruby_prof/mingw/Rakefile
         
     | 
| 
      
 84 
     | 
    
         
            +
            - ext/ruby_prof/mingw/build.rake
         
     | 
| 
      
 85 
     | 
    
         
            +
            - lib/ruby-prof/abstract_printer.rb
         
     | 
| 
      
 86 
     | 
    
         
            +
            - lib/ruby-prof/aggregate_call_info.rb
         
     | 
| 
      
 87 
     | 
    
         
            +
            - lib/ruby-prof/call_info.rb
         
     | 
| 
      
 88 
     | 
    
         
            +
            - lib/ruby-prof/call_tree/abstract_printer.rb
         
     | 
| 
      
 89 
     | 
    
         
            +
            - lib/ruby-prof/call_tree/html_printer.rb
         
     | 
| 
      
 90 
     | 
    
         
            +
            - lib/ruby-prof/call_tree/html_printer_output.html.erb
         
     | 
| 
      
 91 
     | 
    
         
            +
            - lib/ruby-prof/call_tree/text_printer.rb
         
     | 
| 
      
 92 
     | 
    
         
            +
            - lib/ruby-prof/call_tree_printer.rb
         
     | 
| 
      
 93 
     | 
    
         
            +
            - lib/ruby-prof/flat_printer.rb
         
     | 
| 
      
 94 
     | 
    
         
            +
            - lib/ruby-prof/flat_printer_with_line_numbers.rb
         
     | 
| 
      
 95 
     | 
    
         
            +
            - lib/ruby-prof/graph_html_printer.rb
         
     | 
| 
      
 96 
     | 
    
         
            +
            - lib/ruby-prof/graph_printer.rb
         
     | 
| 
      
 97 
     | 
    
         
            +
            - lib/ruby-prof/method_info.rb
         
     | 
| 
      
 98 
     | 
    
         
            +
            - lib/ruby-prof/symbol_to_proc.rb
         
     | 
| 
      
 99 
     | 
    
         
            +
            - lib/ruby-prof/task.rb
         
     | 
| 
      
 100 
     | 
    
         
            +
            - lib/ruby-prof/test.rb
         
     | 
| 
      
 101 
     | 
    
         
            +
            - lib/ruby-prof.rb
         
     | 
| 
      
 102 
     | 
    
         
            +
            - lib/unprof.rb
         
     | 
| 
      
 103 
     | 
    
         
            +
            - rails/environment/profile.rb
         
     | 
| 
      
 104 
     | 
    
         
            +
            - rails/example/example_test.rb
         
     | 
| 
      
 105 
     | 
    
         
            +
            - rails/profile_test_helper.rb
         
     | 
| 
      
 106 
     | 
    
         
            +
            - test/aggregate_test.rb
         
     | 
| 
      
 107 
     | 
    
         
            +
            - test/basic_test.rb
         
     | 
| 
      
 108 
     | 
    
         
            +
            - test/current_failures_windows
         
     | 
| 
      
 109 
     | 
    
         
            +
            - test/do_nothing.rb
         
     | 
| 
      
 110 
     | 
    
         
            +
            - test/duplicate_names_test.rb
         
     | 
| 
      
 111 
     | 
    
         
            +
            - test/enumerable_test.rb
         
     | 
| 
      
 112 
     | 
    
         
            +
            - test/exceptions_test.rb
         
     | 
| 
      
 113 
     | 
    
         
            +
            - test/exclude_threads_test.rb
         
     | 
| 
      
 114 
     | 
    
         
            +
            - test/exec_test.rb
         
     | 
| 
      
 115 
     | 
    
         
            +
            - test/line_number_test.rb
         
     | 
| 
      
 116 
     | 
    
         
            +
            - test/measurement_test.rb
         
     | 
| 
      
 117 
     | 
    
         
            +
            - test/module_test.rb
         
     | 
| 
      
 118 
     | 
    
         
            +
            - test/no_method_class_test.rb
         
     | 
| 
      
 119 
     | 
    
         
            +
            - test/prime.rb
         
     | 
| 
      
 120 
     | 
    
         
            +
            - test/prime_test.rb
         
     | 
| 
      
 121 
     | 
    
         
            +
            - test/printers_test.rb
         
     | 
| 
      
 122 
     | 
    
         
            +
            - test/recursive_test.rb
         
     | 
| 
      
 123 
     | 
    
         
            +
            - test/ruby-prof-bin
         
     | 
| 
      
 124 
     | 
    
         
            +
            - test/singleton_test.rb
         
     | 
| 
      
 125 
     | 
    
         
            +
            - test/stack_test.rb
         
     | 
| 
      
 126 
     | 
    
         
            +
            - test/start_stop_test.rb
         
     | 
| 
      
 127 
     | 
    
         
            +
            - test/test_suite.rb
         
     | 
| 
      
 128 
     | 
    
         
            +
            - test/thread_test.rb
         
     | 
| 
      
 129 
     | 
    
         
            +
            - test/unique_call_path_test.rb
         
     | 
| 
      
 130 
     | 
    
         
            +
            has_rdoc: true
         
     | 
| 
      
 131 
     | 
    
         
            +
            homepage: http://github.com/danielhoey/ruby-prof
         
     | 
| 
      
 132 
     | 
    
         
            +
            licenses: []
         
     | 
| 
      
 133 
     | 
    
         
            +
             
     | 
| 
      
 134 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
      
 135 
     | 
    
         
            +
            rdoc_options: []
         
     | 
| 
      
 136 
     | 
    
         
            +
             
     | 
| 
      
 137 
     | 
    
         
            +
            require_paths: 
         
     | 
| 
      
 138 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 139 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 140 
     | 
    
         
            +
              requirements: 
         
     | 
| 
      
 141 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 142 
     | 
    
         
            +
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 143 
     | 
    
         
            +
                  segments: 
         
     | 
| 
      
 144 
     | 
    
         
            +
                  - 1
         
     | 
| 
      
 145 
     | 
    
         
            +
                  - 8
         
     | 
| 
      
 146 
     | 
    
         
            +
                  - 4
         
     | 
| 
      
 147 
     | 
    
         
            +
                  version: 1.8.4
         
     | 
| 
      
 148 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 149 
     | 
    
         
            +
              requirements: 
         
     | 
| 
      
 150 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 151 
     | 
    
         
            +
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 152 
     | 
    
         
            +
                  segments: 
         
     | 
| 
      
 153 
     | 
    
         
            +
                  - 0
         
     | 
| 
      
 154 
     | 
    
         
            +
                  version: "0"
         
     | 
| 
      
 155 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 156 
     | 
    
         
            +
             
     | 
| 
      
 157 
     | 
    
         
            +
            rubyforge_project: ruby-prof
         
     | 
| 
      
 158 
     | 
    
         
            +
            rubygems_version: 1.3.6
         
     | 
| 
      
 159 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 160 
     | 
    
         
            +
            specification_version: 3
         
     | 
| 
      
 161 
     | 
    
         
            +
            summary: Fast Ruby profiler with real call trees
         
     | 
| 
      
 162 
     | 
    
         
            +
            test_files: 
         
     | 
| 
      
 163 
     | 
    
         
            +
            - test/test_suite.rb
         
     |