Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ ./bin/jruby -S rake spec:profiler
- /Users/.../jruby/bin/jruby --profile --1.8 -S rspec spec/profiler/graph_profile_printer_spec.rb spec/profiler/json_profile_printer_spec.rb spec/profiler/profile_data_spec.rb spec/profiler/profiler_basics_spec.rb spec/profiler/runtime_spec.rb
- Profiling enabled; ^C shutdown will now dump profile info
- Ignoring jruby-launcher-1.0.19-java because its extensions are not built. Try: gem pristine jruby-launcher --version 1.0.19
- ......FF..FFFFFFFFFFFFFFF...........FProfiling enabled; ^C shutdown will now dump profile info
- Ignoring jruby-launcher-1.0.19-java because its extensions are not built. Try: gem pristine jruby-launcher --version 1.0.19
- spec not passed, output:
- ...........
- Finished in 0.12 seconds
- 11 examples, 0 failures
- Failures:
- 1) JRuby::Profiler::GraphProfilePrinter with profiling each method should have the correct children
- Failure/Error: wait_children.length.should == 1
- expected: 1
- got: 0 (using ==)
- # ./spec/profiler/graph_profile_printer_spec.rb:68:in `(root)'
- 2) JRuby::Profiler::GraphProfilePrinter with profiling each method should have the correct parents
- Failure/Error: wait_parents.length.should == 1
- expected: 1
- got: 0 (using ==)
- # ./spec/profiler/graph_profile_printer_spec.rb:80:in `(root)'
- 3) JRuby::Profiler::GraphProfilePrinter with recursive profiling calls, children and parents the recursive methods children should be responsible for all the calls of itself bar one
- Failure/Error: child_row[:calls].should == [3, 4]
- NoMethodError:
- undefined method `[]' for nil:NilClass
- # ./spec/profiler/graph_profile_printer_spec.rb:119:in `(root)'
- 4) JRuby::Profiler::GraphProfilePrinter with recursive profiling calls, children and parents the recursive methods parent rows should be responsible for all the calls of itself bar one
- Failure/Error: parent_row[:calls].should == [3, 4]
- NoMethodError:
- undefined method `[]' for nil:NilClass
- # ./spec/profiler/graph_profile_printer_spec.rb:126:in `(root)'
- 5) JRuby::Profiler::GraphProfilePrinter with recursive profiling calls, children and parents the recursive methods parent rows and the other call should come from the top level
- Failure/Error: parent_row[:calls].should == [1, 4]
- NoMethodError:
- undefined method `[]' for nil:NilClass
- # ./spec/profiler/graph_profile_printer_spec.rb:131:in `(root)'
- 6) JRuby::Profiler::GraphProfilePrinter with recursive profiling durations the time for the main row should not be zero
- Failure/Error: find_row(graph, "ProfilerTest#recurse_wait")[:total].should > 0
- expected: > 0
- got: 0.0
- # ./spec/profiler/graph_profile_printer_spec.rb:146:in `(root)'
- 7) JRuby::Profiler::GraphProfilePrinter with recursive profiling durations the recursive parent should have zero time
- Failure/Error: parent = find_row(main[:parents], "ProfilerTest#recurse_wait")[:total].should == 0
- NoMethodError:
- undefined method `[]' for nil:NilClass
- # ./spec/profiler/graph_profile_printer_spec.rb:152:in `(root)'
- 8) JRuby::Profiler::GraphProfilePrinter with recursive profiling durations the recursive child should have zero time
- Failure/Error: parent = find_row(main[:children], "ProfilerTest#recurse_wait")[:total].should == 0
- NoMethodError:
- undefined method `[]' for nil:NilClass
- # ./spec/profiler/graph_profile_printer_spec.rb:158:in `(root)'
- 9) JRuby::Profiler::GraphProfilePrinter with recursive methods where the profiling is started inside the recursion should have the correct call info
- Failure/Error: parent[:calls].should == [3, 4]
- NoMethodError:
- undefined method `[]' for nil:NilClass
- # ./spec/profiler/graph_profile_printer_spec.rb:178:in `(root)'
- 10) JRuby::Profiler::JsonProfilePrinter when printing an empty profile contains only the top invocation
- Failure/Error: json_output['methods'].should have(1).items
- JSON::ParserError:
- unexpected token at ',
- {
- "total_time":0.000000,
- "thread_name":"main",
- "methods":[
- {"id":"0","name":"(top)","total_calls":1,"total_time":0.000000,"self_time":0.000000,"child_time":0.000000,"parents":[],"children":[]}
- ]
- }'
- # json/ext/Parser.java:251:in `parse'
- # ./spec/profiler/profiler_spec_helpers.rb:35:in `json_output'
- # ./spec/profiler/json_profile_printer_spec.rb:12:in `(root)'
- 11) JRuby::Profiler::JsonProfilePrinter when printing an empty profile contains the total duration
- Failure/Error: json_output['total_time'].should == 0.0
- JSON::ParserError:
- unexpected token at ',
- {
- "total_time":0.000000,
- "thread_name":"main",
- "methods":[
- {"id":"0","name":"(top)","total_calls":1,"total_time":0.000000,"self_time":0.000000,"child_time":0.000000,"parents":[],"children":[]}
- ]
- }'
- # json/ext/Parser.java:251:in `parse'
- # ./spec/profiler/profiler_spec_helpers.rb:35:in `json_output'
- # ./spec/profiler/json_profile_printer_spec.rb:17:in `(root)'
- 12) JRuby::Profiler::JsonProfilePrinter when printing an empty profile outputs the name of the thread
- Failure/Error: json_output['thread_name'].should == 'main'
- JSON::ParserError:
- unexpected token at ',
- {
- "total_time":0.000000,
- "thread_name":"main",
- "methods":[
- {"id":"0","name":"(top)","total_calls":1,"total_time":0.000000,"self_time":0.000000,"child_time":0.000000,"parents":[],"children":[]}
- ]
- }'
- # json/ext/Parser.java:251:in `parse'
- # ./spec/profiler/profiler_spec_helpers.rb:35:in `json_output'
- # ./spec/profiler/json_profile_printer_spec.rb:21:in `(root)'
- 13) JRuby::Profiler::JsonProfilePrinter when printing a profile outputs the total duration
- Failure/Error: json_output['total_time'].should > 0.0
- JSON::ParserError:
- unexpected token at ',
- {
- "total_time":0.011440,
- "thread_name":"main",
- "methods":[
- {"id":"130","name":"Kernel.sleep","total_calls":1,"total_time":0.011381,"self_time":0.011381,"child_time":0.000000,"parents":[{"id":"12565","total_calls":1,"total_time":0.011381,"self_time":0.011381,"child_time":0.000000}],"children":[]},
- {"id":"12568","name":"ProfilerTest#test_instance_method","total_calls":1,"total_time":0.000036,"self_time":0.000036,"child_time":0.000000,"parents":[{"id":"0","total_calls":1,"total_time":0.000036,"self_time":0.000036,"child_time":0.000000}],"children":[]},
- {"id":"12565","name":"ProfilerTest#wait","total_calls":1,"total_time":0.011404,"self_time":0.000023,"child_time":0.011381,"parents":[{"id":"0","total_calls":1,"total_time":0.011404,"self_time":0.000023,"child_time":0.011381}],"children":[{"id":"130","total_calls":1,"total_time":0.011381,"self_time":0.011381,"child_time":0.000000}]},
- {"id":"0","name":"(top)","total_calls":1,"total_time":0.011440,"self_time":0.000000,"child_time":0.011440,"parents":[],"children":[{"id":"12568","total_calls":1,"total_time":0.000036,"self_time":0.000036,"child_time":0.000000},{"id":"12565","total_calls":1,"total_time":0.011404,"self_time":0.000023,"child_time":0.011381}]}
- ]
- }'
- # json/ext/Parser.java:251:in `parse'
- # ./spec/profiler/profiler_spec_helpers.rb:35:in `json_output'
- # ./spec/profiler/json_profile_printer_spec.rb:35:in `(root)'
- 14) JRuby::Profiler::JsonProfilePrinter when printing a profile outputs the name of the thread
- Failure/Error: json_output['thread_name'].should == 'main'
- JSON::ParserError:
- unexpected token at ',
- {
- "total_time":0.010516,
- "thread_name":"main",
- "methods":[
- {"id":"130","name":"Kernel.sleep","total_calls":1,"total_time":0.010474,"self_time":0.010474,"child_time":0.000000,"parents":[{"id":"12565","total_calls":1,"total_time":0.010474,"self_time":0.010474,"child_time":0.000000}],"children":[]},
- {"id":"12568","name":"ProfilerTest#test_instance_method","total_calls":1,"total_time":0.000027,"self_time":0.000027,"child_time":0.000000,"parents":[{"id":"0","total_calls":1,"total_time":0.000027,"self_time":0.000027,"child_time":0.000000}],"children":[]},
- {"id":"12565","name":"ProfilerTest#wait","total_calls":1,"total_time":0.010489,"self_time":0.000015,"child_time":0.010474,"parents":[{"id":"0","total_calls":1,"total_time":0.010489,"self_time":0.000015,"child_time":0.010474}],"children":[{"id":"130","total_calls":1,"total_time":0.010474,"self_time":0.010474,"child_time":0.000000}]},
- {"id":"0","name":"(top)","total_calls":1,"total_time":0.010516,"self_time":0.000000,"child_time":0.010516,"parents":[],"children":[{"id":"12568","total_calls":1,"total_time":0.000027,"self_time":0.000027,"child_time":0.000000},{"id":"12565","total_calls":1,"total_time":0.010489,"self_time":0.000015,"child_time":0.010474}]}
- ]
- }'
- # json/ext/Parser.java:251:in `parse'
- # ./spec/profiler/profiler_spec_helpers.rb:35:in `json_output'
- # ./spec/profiler/json_profile_printer_spec.rb:39:in `(root)'
- 15) JRuby::Profiler::JsonProfilePrinter when printing a profile outputs method data which contains the number of calls, total, self and child time
- Failure/Error: json_output['methods'].find { |m| m['name'] == 'ProfilerTest#test_instance_method' }
- JSON::ParserError:
- unexpected token at ',
- {
- "total_time":0.012715,
- "thread_name":"main",
- "methods":[
- {"id":"130","name":"Kernel.sleep","total_calls":1,"total_time":0.012639,"self_time":0.012639,"child_time":0.000000,"parents":[{"id":"12565","total_calls":1,"total_time":0.012639,"self_time":0.012639,"child_time":0.000000}],"children":[]},
- {"id":"12568","name":"ProfilerTest#test_instance_method","total_calls":1,"total_time":0.000054,"self_time":0.000054,"child_time":0.000000,"parents":[{"id":"0","total_calls":1,"total_time":0.000054,"self_time":0.000054,"child_time":0.000000}],"children":[]},
- {"id":"12565","name":"ProfilerTest#wait","total_calls":1,"total_time":0.012661,"self_time":0.000022,"child_time":0.012639,"parents":[{"id":"0","total_calls":1,"total_time":0.012661,"self_time":0.000022,"child_time":0.012639}],"children":[{"id":"130","total_calls":1,"total_time":0.012639,"self_time":0.012639,"child_time":0.000000}]},
- {"id":"0","name":"(top)","total_calls":1,"total_time":0.012715,"self_time":0.000000,"child_time":0.012715,"parents":[],"children":[{"id":"12568","total_calls":1,"total_time":0.000054,"self_time":0.000054,"child_time":0.000000},{"id":"12565","total_calls":1,"total_time":0.012661,"self_time":0.000022,"child_time":0.012639}]}
- ]
- }'
- # json/ext/Parser.java:251:in `parse'
- # ./spec/profiler/profiler_spec_helpers.rb:35:in `json_output'
- # ./spec/profiler/json_profile_printer_spec.rb:44:in `method_invocation'
- # ./spec/profiler/json_profile_printer_spec.rb:52:in `(root)'
- 16) JRuby::Profiler::JsonProfilePrinter when printing a profile outputs method data which contains data on the calls from parents, including calls, total, self and child time
- Failure/Error: json_output['methods'].find { |m| m['name'] == 'ProfilerTest#test_instance_method' }
- JSON::ParserError:
- unexpected token at ',
- {
- "total_time":0.011263,
- "thread_name":"main",
- "methods":[
- {"id":"130","name":"Kernel.sleep","total_calls":1,"total_time":0.011160,"self_time":0.011160,"child_time":0.000000,"parents":[{"id":"12565","total_calls":1,"total_time":0.011160,"self_time":0.011160,"child_time":0.000000}],"children":[]},
- {"id":"12568","name":"ProfilerTest#test_instance_method","total_calls":1,"total_time":0.000081,"self_time":0.000081,"child_time":0.000000,"parents":[{"id":"0","total_calls":1,"total_time":0.000081,"self_time":0.000081,"child_time":0.000000}],"children":[]},
- {"id":"12565","name":"ProfilerTest#wait","total_calls":1,"total_time":0.011182,"self_time":0.000022,"child_time":0.011160,"parents":[{"id":"0","total_calls":1,"total_time":0.011182,"self_time":0.000022,"child_time":0.011160}],"children":[{"id":"130","total_calls":1,"total_time":0.011160,"self_time":0.011160,"child_time":0.000000}]},
- {"id":"0","name":"(top)","total_calls":1,"total_time":0.011263,"self_time":0.000000,"child_time":0.011263,"parents":[],"children":[{"id":"12568","total_calls":1,"total_time":0.000081,"self_time":0.000081,"child_time":0.000000},{"id":"12565","total_calls":1,"total_time":0.011182,"self_time":0.000022,"child_time":0.011160}]}
- ]
- }'
- # json/ext/Parser.java:251:in `parse'
- # ./spec/profiler/profiler_spec_helpers.rb:35:in `json_output'
- # ./spec/profiler/json_profile_printer_spec.rb:44:in `method_invocation'
- # ./spec/profiler/json_profile_printer_spec.rb:56:in `(root)'
- 17) JRuby::Profiler::JsonProfilePrinter when printing a profile outputs method data which contains data on the calls to children
- Failure/Error: method1_invocation = json_output['methods'].find { |m| m['name'] == 'ProfilerTest#wait' }
- JSON::ParserError:
- unexpected token at ',
- {
- "total_time":0.011022,
- "thread_name":"main",
- "methods":[
- {"id":"130","name":"Kernel.sleep","total_calls":1,"total_time":0.010981,"self_time":0.010981,"child_time":0.000000,"parents":[{"id":"12565","total_calls":1,"total_time":0.010981,"self_time":0.010981,"child_time":0.000000}],"children":[]},
- {"id":"12568","name":"ProfilerTest#test_instance_method","total_calls":1,"total_time":0.000030,"self_time":0.000030,"child_time":0.000000,"parents":[{"id":"0","total_calls":1,"total_time":0.000030,"self_time":0.000030,"child_time":0.000000}],"children":[]},
- {"id":"12565","name":"ProfilerTest#wait","total_calls":1,"total_time":0.010992,"self_time":0.000011,"child_time":0.010981,"parents":[{"id":"0","total_calls":1,"total_time":0.010992,"self_time":0.000011,"child_time":0.010981}],"children":[{"id":"130","total_calls":1,"total_time":0.010981,"self_time":0.010981,"child_time":0.000000}]},
- {"id":"0","name":"(top)","total_calls":1,"total_time":0.011022,"self_time":0.000000,"child_time":0.011022,"parents":[],"children":[{"id":"12568","total_calls":1,"total_time":0.000030,"self_time":0.000030,"child_time":0.000000},{"id":"12565","total_calls":1,"total_time":0.010992,"self_time":0.000011,"child_time":0.010981}]}
- ]
- }'
- # json/ext/Parser.java:251:in `parse'
- # ./spec/profiler/profiler_spec_helpers.rb:35:in `json_output'
- # ./spec/profiler/json_profile_printer_spec.rb:62:in `(root)'
- 18) JRuby's profiling mode reports unimplemneted methods like fork as unimplemented
- Failure/Error: Kernel.respond_to?(:fork).should == false
- expected: false
- got: true (using ==)
- # ./spec/profiler/profiler_basics_spec.rb:8:in `(root)'
- Finished in 2.55 seconds
- 38 examples, 18 failures
- Failed examples:
- rspec ./spec/profiler/graph_profile_printer_spec.rb:64 # JRuby::Profiler::GraphProfilePrinter with profiling each method should have the correct children
- rspec ./spec/profiler/graph_profile_printer_spec.rb:76 # JRuby::Profiler::GraphProfilePrinter with profiling each method should have the correct parents
- rspec ./spec/profiler/graph_profile_printer_spec.rb:117 # JRuby::Profiler::GraphProfilePrinter with recursive profiling calls, children and parents the recursive methods children should be responsible for all the calls of itself bar one
- rspec ./spec/profiler/graph_profile_printer_spec.rb:124 # JRuby::Profiler::GraphProfilePrinter with recursive profiling calls, children and parents the recursive methods parent rows should be responsible for all the calls of itself bar one
- rspec ./spec/profiler/graph_profile_printer_spec.rb:129 # JRuby::Profiler::GraphProfilePrinter with recursive profiling calls, children and parents the recursive methods parent rows and the other call should come from the top level
- rspec ./spec/profiler/graph_profile_printer_spec.rb:144 # JRuby::Profiler::GraphProfilePrinter with recursive profiling durations the time for the main row should not be zero
- rspec ./spec/profiler/graph_profile_printer_spec.rb:149 # JRuby::Profiler::GraphProfilePrinter with recursive profiling durations the recursive parent should have zero time
- rspec ./spec/profiler/graph_profile_printer_spec.rb:155 # JRuby::Profiler::GraphProfilePrinter with recursive profiling durations the recursive child should have zero time
- rspec ./spec/profiler/graph_profile_printer_spec.rb:170 # JRuby::Profiler::GraphProfilePrinter with recursive methods where the profiling is started inside the recursion should have the correct call info
- rspec ./spec/profiler/json_profile_printer_spec.rb:11 # JRuby::Profiler::JsonProfilePrinter when printing an empty profile contains only the top invocation
- rspec ./spec/profiler/json_profile_printer_spec.rb:16 # JRuby::Profiler::JsonProfilePrinter when printing an empty profile contains the total duration
- rspec ./spec/profiler/json_profile_printer_spec.rb:20 # JRuby::Profiler::JsonProfilePrinter when printing an empty profile outputs the name of the thread
- rspec ./spec/profiler/json_profile_printer_spec.rb:34 # JRuby::Profiler::JsonProfilePrinter when printing a profile outputs the total duration
- rspec ./spec/profiler/json_profile_printer_spec.rb:38 # JRuby::Profiler::JsonProfilePrinter when printing a profile outputs the name of the thread
- rspec ./spec/profiler/json_profile_printer_spec.rb:51 # JRuby::Profiler::JsonProfilePrinter when printing a profile outputs method data which contains the number of calls, total, self and child time
- rspec ./spec/profiler/json_profile_printer_spec.rb:55 # JRuby::Profiler::JsonProfilePrinter when printing a profile outputs method data which contains data on the calls from parents, including calls, total, self and child time
- rspec ./spec/profiler/json_profile_printer_spec.rb:61 # JRuby::Profiler::JsonProfilePrinter when printing a profile outputs method data which contains data on the calls to children
- rspec ./spec/profiler/profiler_basics_spec.rb:7 # JRuby's profiling mode reports unimplemneted methods like fork as unimplemented
- RSpec::Expectations::ExpectationNotMetError: expected: "true"
- got: "0" (using ==)
- at :1
- at :1
- call at org/jruby/RubyProc.java:292
- instance_eval at org/jruby/RubyKernel.java:2163
- collect at org/jruby/RubyArray.java:2400
- collect at org/jruby/RubyArray.java:2400
- collect at org/jruby/RubyArray.java:2400
- call at org/jruby/RubyProc.java:292
- call at org/jruby/RubyProc.java:230
- main profile results:
- Total time: 0,00
- total self children calls method
- ----------------------------------------------------------------
- 0,00 0,00 0,00 1 ProfilerTest#start
- 0,00 0,00 0,00 1 JRuby::Profiler.start
- 0,00 0,00 0,00 1 JRuby::Profiler.clear
- 0,00 0,00 0,00 1 JRuby::Profiler.current_thread_context
- 0,00 0,00 0,00 1 JRuby::Profiler.runtime
- 0,00 0,00 0,00 1 JRuby.runtime
- 0,00 0,00 0,00 2 Java::OrgJruby::RubyBasicObject#getRuntime
- 0,00 0,00 0,00 2 Java::OrgJrubyInternalRuntime::ThreadService#getCurrentContext
- 0,00 0,00 0,00 2 Java::OrgJruby::Ruby#getThreadService
- 0,00 0,00 0,00 1 ProfilerTest#test_instance_method
- 0,00 0,00 0,00 1 ProfilerTest.test_static_method
- 0,00 0,00 0,00 1 JRuby.reference0
- 0,00 0,00 0,00 1 Fixnum#+
- /Users/../jruby/bin/jruby --profile --1.8 -S rspec spec/profiler/graph_profile_printer_spec.rb spec/profiler/json_profile_printer_spec.rb spec/profiler/profile_data_spec.rb spec/profiler/profiler_basics_spec.rb spec/profiler/runtime_spec.rb failed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement