Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.08 KB | None | 0 0
  1. $ ./bin/jruby -S rake spec:profiler
  2. /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
  3. Profiling enabled; ^C shutdown will now dump profile info
  4. Ignoring jruby-launcher-1.0.19-java because its extensions are not built. Try: gem pristine jruby-launcher --version 1.0.19
  5. ......FF..FFFFFFFFFFFFFFF...........FProfiling enabled; ^C shutdown will now dump profile info
  6. Ignoring jruby-launcher-1.0.19-java because its extensions are not built. Try: gem pristine jruby-launcher --version 1.0.19
  7. spec not passed, output:
  8. ...........
  9.  
  10. Finished in 0.12 seconds
  11. 11 examples, 0 failures
  12.  
  13.  
  14. Failures:
  15.  
  16. 1) JRuby::Profiler::GraphProfilePrinter with profiling each method should have the correct children
  17. Failure/Error: wait_children.length.should == 1
  18. expected: 1
  19. got: 0 (using ==)
  20. # ./spec/profiler/graph_profile_printer_spec.rb:68:in `(root)'
  21.  
  22. 2) JRuby::Profiler::GraphProfilePrinter with profiling each method should have the correct parents
  23. Failure/Error: wait_parents.length.should == 1
  24. expected: 1
  25. got: 0 (using ==)
  26. # ./spec/profiler/graph_profile_printer_spec.rb:80:in `(root)'
  27.  
  28. 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
  29. Failure/Error: child_row[:calls].should == [3, 4]
  30. NoMethodError:
  31. undefined method `[]' for nil:NilClass
  32. # ./spec/profiler/graph_profile_printer_spec.rb:119:in `(root)'
  33.  
  34. 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
  35. Failure/Error: parent_row[:calls].should == [3, 4]
  36. NoMethodError:
  37. undefined method `[]' for nil:NilClass
  38. # ./spec/profiler/graph_profile_printer_spec.rb:126:in `(root)'
  39.  
  40. 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
  41. Failure/Error: parent_row[:calls].should == [1, 4]
  42. NoMethodError:
  43. undefined method `[]' for nil:NilClass
  44. # ./spec/profiler/graph_profile_printer_spec.rb:131:in `(root)'
  45.  
  46. 6) JRuby::Profiler::GraphProfilePrinter with recursive profiling durations the time for the main row should not be zero
  47. Failure/Error: find_row(graph, "ProfilerTest#recurse_wait")[:total].should > 0
  48. expected: > 0
  49. got: 0.0
  50. # ./spec/profiler/graph_profile_printer_spec.rb:146:in `(root)'
  51.  
  52. 7) JRuby::Profiler::GraphProfilePrinter with recursive profiling durations the recursive parent should have zero time
  53. Failure/Error: parent = find_row(main[:parents], "ProfilerTest#recurse_wait")[:total].should == 0
  54. NoMethodError:
  55. undefined method `[]' for nil:NilClass
  56. # ./spec/profiler/graph_profile_printer_spec.rb:152:in `(root)'
  57.  
  58. 8) JRuby::Profiler::GraphProfilePrinter with recursive profiling durations the recursive child should have zero time
  59. Failure/Error: parent = find_row(main[:children], "ProfilerTest#recurse_wait")[:total].should == 0
  60. NoMethodError:
  61. undefined method `[]' for nil:NilClass
  62. # ./spec/profiler/graph_profile_printer_spec.rb:158:in `(root)'
  63.  
  64. 9) JRuby::Profiler::GraphProfilePrinter with recursive methods where the profiling is started inside the recursion should have the correct call info
  65. Failure/Error: parent[:calls].should == [3, 4]
  66. NoMethodError:
  67. undefined method `[]' for nil:NilClass
  68. # ./spec/profiler/graph_profile_printer_spec.rb:178:in `(root)'
  69.  
  70. 10) JRuby::Profiler::JsonProfilePrinter when printing an empty profile contains only the top invocation
  71. Failure/Error: json_output['methods'].should have(1).items
  72. JSON::ParserError:
  73. unexpected token at ',
  74. {
  75. "total_time":0.000000,
  76. "thread_name":"main",
  77. "methods":[
  78. {"id":"0","name":"(top)","total_calls":1,"total_time":0.000000,"self_time":0.000000,"child_time":0.000000,"parents":[],"children":[]}
  79. ]
  80. }'
  81. # json/ext/Parser.java:251:in `parse'
  82. # ./spec/profiler/profiler_spec_helpers.rb:35:in `json_output'
  83. # ./spec/profiler/json_profile_printer_spec.rb:12:in `(root)'
  84.  
  85. 11) JRuby::Profiler::JsonProfilePrinter when printing an empty profile contains the total duration
  86. Failure/Error: json_output['total_time'].should == 0.0
  87. JSON::ParserError:
  88. unexpected token at ',
  89. {
  90. "total_time":0.000000,
  91. "thread_name":"main",
  92. "methods":[
  93. {"id":"0","name":"(top)","total_calls":1,"total_time":0.000000,"self_time":0.000000,"child_time":0.000000,"parents":[],"children":[]}
  94. ]
  95. }'
  96. # json/ext/Parser.java:251:in `parse'
  97. # ./spec/profiler/profiler_spec_helpers.rb:35:in `json_output'
  98. # ./spec/profiler/json_profile_printer_spec.rb:17:in `(root)'
  99.  
  100. 12) JRuby::Profiler::JsonProfilePrinter when printing an empty profile outputs the name of the thread
  101. Failure/Error: json_output['thread_name'].should == 'main'
  102. JSON::ParserError:
  103. unexpected token at ',
  104. {
  105. "total_time":0.000000,
  106. "thread_name":"main",
  107. "methods":[
  108. {"id":"0","name":"(top)","total_calls":1,"total_time":0.000000,"self_time":0.000000,"child_time":0.000000,"parents":[],"children":[]}
  109. ]
  110. }'
  111. # json/ext/Parser.java:251:in `parse'
  112. # ./spec/profiler/profiler_spec_helpers.rb:35:in `json_output'
  113. # ./spec/profiler/json_profile_printer_spec.rb:21:in `(root)'
  114.  
  115. 13) JRuby::Profiler::JsonProfilePrinter when printing a profile outputs the total duration
  116. Failure/Error: json_output['total_time'].should > 0.0
  117. JSON::ParserError:
  118. unexpected token at ',
  119. {
  120. "total_time":0.011440,
  121. "thread_name":"main",
  122. "methods":[
  123. {"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":[]},
  124. {"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":[]},
  125. {"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}]},
  126. {"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}]}
  127. ]
  128. }'
  129. # json/ext/Parser.java:251:in `parse'
  130. # ./spec/profiler/profiler_spec_helpers.rb:35:in `json_output'
  131. # ./spec/profiler/json_profile_printer_spec.rb:35:in `(root)'
  132.  
  133. 14) JRuby::Profiler::JsonProfilePrinter when printing a profile outputs the name of the thread
  134. Failure/Error: json_output['thread_name'].should == 'main'
  135. JSON::ParserError:
  136. unexpected token at ',
  137. {
  138. "total_time":0.010516,
  139. "thread_name":"main",
  140. "methods":[
  141. {"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":[]},
  142. {"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":[]},
  143. {"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}]},
  144. {"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}]}
  145. ]
  146. }'
  147. # json/ext/Parser.java:251:in `parse'
  148. # ./spec/profiler/profiler_spec_helpers.rb:35:in `json_output'
  149. # ./spec/profiler/json_profile_printer_spec.rb:39:in `(root)'
  150.  
  151. 15) JRuby::Profiler::JsonProfilePrinter when printing a profile outputs method data which contains the number of calls, total, self and child time
  152. Failure/Error: json_output['methods'].find { |m| m['name'] == 'ProfilerTest#test_instance_method' }
  153. JSON::ParserError:
  154. unexpected token at ',
  155. {
  156. "total_time":0.012715,
  157. "thread_name":"main",
  158. "methods":[
  159. {"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":[]},
  160. {"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":[]},
  161. {"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}]},
  162. {"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}]}
  163. ]
  164. }'
  165. # json/ext/Parser.java:251:in `parse'
  166. # ./spec/profiler/profiler_spec_helpers.rb:35:in `json_output'
  167. # ./spec/profiler/json_profile_printer_spec.rb:44:in `method_invocation'
  168. # ./spec/profiler/json_profile_printer_spec.rb:52:in `(root)'
  169.  
  170. 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
  171. Failure/Error: json_output['methods'].find { |m| m['name'] == 'ProfilerTest#test_instance_method' }
  172. JSON::ParserError:
  173. unexpected token at ',
  174. {
  175. "total_time":0.011263,
  176. "thread_name":"main",
  177. "methods":[
  178. {"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":[]},
  179. {"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":[]},
  180. {"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}]},
  181. {"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}]}
  182. ]
  183. }'
  184. # json/ext/Parser.java:251:in `parse'
  185. # ./spec/profiler/profiler_spec_helpers.rb:35:in `json_output'
  186. # ./spec/profiler/json_profile_printer_spec.rb:44:in `method_invocation'
  187. # ./spec/profiler/json_profile_printer_spec.rb:56:in `(root)'
  188.  
  189. 17) JRuby::Profiler::JsonProfilePrinter when printing a profile outputs method data which contains data on the calls to children
  190. Failure/Error: method1_invocation = json_output['methods'].find { |m| m['name'] == 'ProfilerTest#wait' }
  191. JSON::ParserError:
  192. unexpected token at ',
  193. {
  194. "total_time":0.011022,
  195. "thread_name":"main",
  196. "methods":[
  197. {"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":[]},
  198. {"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":[]},
  199. {"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}]},
  200. {"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}]}
  201. ]
  202. }'
  203. # json/ext/Parser.java:251:in `parse'
  204. # ./spec/profiler/profiler_spec_helpers.rb:35:in `json_output'
  205. # ./spec/profiler/json_profile_printer_spec.rb:62:in `(root)'
  206.  
  207. 18) JRuby's profiling mode reports unimplemneted methods like fork as unimplemented
  208. Failure/Error: Kernel.respond_to?(:fork).should == false
  209. expected: false
  210. got: true (using ==)
  211. # ./spec/profiler/profiler_basics_spec.rb:8:in `(root)'
  212.  
  213. Finished in 2.55 seconds
  214. 38 examples, 18 failures
  215.  
  216. Failed examples:
  217.  
  218. rspec ./spec/profiler/graph_profile_printer_spec.rb:64 # JRuby::Profiler::GraphProfilePrinter with profiling each method should have the correct children
  219. rspec ./spec/profiler/graph_profile_printer_spec.rb:76 # JRuby::Profiler::GraphProfilePrinter with profiling each method should have the correct parents
  220. 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
  221. 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
  222. 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
  223. 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
  224. rspec ./spec/profiler/graph_profile_printer_spec.rb:149 # JRuby::Profiler::GraphProfilePrinter with recursive profiling durations the recursive parent should have zero time
  225. rspec ./spec/profiler/graph_profile_printer_spec.rb:155 # JRuby::Profiler::GraphProfilePrinter with recursive profiling durations the recursive child should have zero time
  226. 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
  227. rspec ./spec/profiler/json_profile_printer_spec.rb:11 # JRuby::Profiler::JsonProfilePrinter when printing an empty profile contains only the top invocation
  228. rspec ./spec/profiler/json_profile_printer_spec.rb:16 # JRuby::Profiler::JsonProfilePrinter when printing an empty profile contains the total duration
  229. rspec ./spec/profiler/json_profile_printer_spec.rb:20 # JRuby::Profiler::JsonProfilePrinter when printing an empty profile outputs the name of the thread
  230. rspec ./spec/profiler/json_profile_printer_spec.rb:34 # JRuby::Profiler::JsonProfilePrinter when printing a profile outputs the total duration
  231. rspec ./spec/profiler/json_profile_printer_spec.rb:38 # JRuby::Profiler::JsonProfilePrinter when printing a profile outputs the name of the thread
  232. 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
  233. 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
  234. 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
  235. rspec ./spec/profiler/profiler_basics_spec.rb:7 # JRuby's profiling mode reports unimplemneted methods like fork as unimplemented
  236. RSpec::Expectations::ExpectationNotMetError: expected: "true"
  237. got: "0" (using ==)
  238. at :1
  239. at :1
  240. call at org/jruby/RubyProc.java:292
  241. instance_eval at org/jruby/RubyKernel.java:2163
  242. collect at org/jruby/RubyArray.java:2400
  243. collect at org/jruby/RubyArray.java:2400
  244. collect at org/jruby/RubyArray.java:2400
  245. call at org/jruby/RubyProc.java:292
  246. call at org/jruby/RubyProc.java:230
  247.  
  248. main profile results:
  249. Total time: 0,00
  250.  
  251. total self children calls method
  252. ----------------------------------------------------------------
  253. 0,00 0,00 0,00 1 ProfilerTest#start
  254. 0,00 0,00 0,00 1 JRuby::Profiler.start
  255. 0,00 0,00 0,00 1 JRuby::Profiler.clear
  256. 0,00 0,00 0,00 1 JRuby::Profiler.current_thread_context
  257. 0,00 0,00 0,00 1 JRuby::Profiler.runtime
  258. 0,00 0,00 0,00 1 JRuby.runtime
  259. 0,00 0,00 0,00 2 Java::OrgJruby::RubyBasicObject#getRuntime
  260. 0,00 0,00 0,00 2 Java::OrgJrubyInternalRuntime::ThreadService#getCurrentContext
  261. 0,00 0,00 0,00 2 Java::OrgJruby::Ruby#getThreadService
  262. 0,00 0,00 0,00 1 ProfilerTest#test_instance_method
  263. 0,00 0,00 0,00 1 ProfilerTest.test_static_method
  264. 0,00 0,00 0,00 1 JRuby.reference0
  265. 0,00 0,00 0,00 1 Fixnum#+
  266. /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