wd_newrelic_rpm 3.3.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (264) hide show
  1. data/CHANGELOG +591 -0
  2. data/LICENSE +64 -0
  3. data/README.rdoc +179 -0
  4. data/bin/mongrel_rpm +33 -0
  5. data/bin/newrelic +13 -0
  6. data/bin/newrelic_cmd +5 -0
  7. data/cert/cacert.pem +118 -0
  8. data/cert/oldsite.pem +28 -0
  9. data/cert/site.pem +27 -0
  10. data/install.rb +9 -0
  11. data/lib/conditional_vendored_dependency_detection.rb +3 -0
  12. data/lib/conditional_vendored_metric_parser.rb +5 -0
  13. data/lib/new_relic/agent.rb +467 -0
  14. data/lib/new_relic/agent/agent.rb +1325 -0
  15. data/lib/new_relic/agent/beacon_configuration.rb +121 -0
  16. data/lib/new_relic/agent/browser_monitoring.rb +142 -0
  17. data/lib/new_relic/agent/busy_calculator.rb +99 -0
  18. data/lib/new_relic/agent/chained_call.rb +13 -0
  19. data/lib/new_relic/agent/database.rb +223 -0
  20. data/lib/new_relic/agent/error_collector.rb +251 -0
  21. data/lib/new_relic/agent/instrumentation.rb +9 -0
  22. data/lib/new_relic/agent/instrumentation/active_merchant.rb +29 -0
  23. data/lib/new_relic/agent/instrumentation/active_record.rb +137 -0
  24. data/lib/new_relic/agent/instrumentation/acts_as_solr.rb +68 -0
  25. data/lib/new_relic/agent/instrumentation/authlogic.rb +19 -0
  26. data/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +443 -0
  27. data/lib/new_relic/agent/instrumentation/data_mapper.rb +238 -0
  28. data/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb +52 -0
  29. data/lib/new_relic/agent/instrumentation/memcache.rb +80 -0
  30. data/lib/new_relic/agent/instrumentation/merb/controller.rb +41 -0
  31. data/lib/new_relic/agent/instrumentation/merb/errors.rb +29 -0
  32. data/lib/new_relic/agent/instrumentation/metric_frame.rb +353 -0
  33. data/lib/new_relic/agent/instrumentation/metric_frame/pop.rb +80 -0
  34. data/lib/new_relic/agent/instrumentation/net.rb +29 -0
  35. data/lib/new_relic/agent/instrumentation/passenger_instrumentation.rb +37 -0
  36. data/lib/new_relic/agent/instrumentation/queue_time.rb +210 -0
  37. data/lib/new_relic/agent/instrumentation/rack.rb +98 -0
  38. data/lib/new_relic/agent/instrumentation/rails/action_controller.rb +114 -0
  39. data/lib/new_relic/agent/instrumentation/rails/action_web_service.rb +42 -0
  40. data/lib/new_relic/agent/instrumentation/rails/errors.rb +42 -0
  41. data/lib/new_relic/agent/instrumentation/rails3/action_controller.rb +180 -0
  42. data/lib/new_relic/agent/instrumentation/rails3/errors.rb +37 -0
  43. data/lib/new_relic/agent/instrumentation/sinatra.rb +78 -0
  44. data/lib/new_relic/agent/instrumentation/sunspot.rb +29 -0
  45. data/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb +21 -0
  46. data/lib/new_relic/agent/method_tracer.rb +528 -0
  47. data/lib/new_relic/agent/sampler.rb +50 -0
  48. data/lib/new_relic/agent/samplers/cpu_sampler.rb +58 -0
  49. data/lib/new_relic/agent/samplers/delayed_job_lock_sampler.rb +40 -0
  50. data/lib/new_relic/agent/samplers/memory_sampler.rb +143 -0
  51. data/lib/new_relic/agent/samplers/object_sampler.rb +26 -0
  52. data/lib/new_relic/agent/shim_agent.rb +29 -0
  53. data/lib/new_relic/agent/sql_sampler.rb +286 -0
  54. data/lib/new_relic/agent/stats_engine.rb +26 -0
  55. data/lib/new_relic/agent/stats_engine/gc_profiler.rb +123 -0
  56. data/lib/new_relic/agent/stats_engine/metric_stats.rb +187 -0
  57. data/lib/new_relic/agent/stats_engine/samplers.rb +95 -0
  58. data/lib/new_relic/agent/stats_engine/transactions.rb +125 -0
  59. data/lib/new_relic/agent/transaction_info.rb +74 -0
  60. data/lib/new_relic/agent/transaction_sample_builder.rb +116 -0
  61. data/lib/new_relic/agent/transaction_sampler.rb +468 -0
  62. data/lib/new_relic/agent/worker_loop.rb +89 -0
  63. data/lib/new_relic/collection_helper.rb +77 -0
  64. data/lib/new_relic/command.rb +85 -0
  65. data/lib/new_relic/commands/deployments.rb +105 -0
  66. data/lib/new_relic/commands/install.rb +80 -0
  67. data/lib/new_relic/control.rb +46 -0
  68. data/lib/new_relic/control/class_methods.rb +53 -0
  69. data/lib/new_relic/control/configuration.rb +206 -0
  70. data/lib/new_relic/control/frameworks.rb +10 -0
  71. data/lib/new_relic/control/frameworks/external.rb +16 -0
  72. data/lib/new_relic/control/frameworks/merb.rb +31 -0
  73. data/lib/new_relic/control/frameworks/rails.rb +164 -0
  74. data/lib/new_relic/control/frameworks/rails3.rb +75 -0
  75. data/lib/new_relic/control/frameworks/ruby.rb +42 -0
  76. data/lib/new_relic/control/frameworks/sinatra.rb +20 -0
  77. data/lib/new_relic/control/instance_methods.rb +179 -0
  78. data/lib/new_relic/control/instrumentation.rb +100 -0
  79. data/lib/new_relic/control/logging_methods.rb +143 -0
  80. data/lib/new_relic/control/profiling.rb +25 -0
  81. data/lib/new_relic/control/server_methods.rb +114 -0
  82. data/lib/new_relic/data_serialization.rb +151 -0
  83. data/lib/new_relic/delayed_job_injection.rb +51 -0
  84. data/lib/new_relic/language_support.rb +73 -0
  85. data/lib/new_relic/local_environment.rb +428 -0
  86. data/lib/new_relic/merbtasks.rb +6 -0
  87. data/lib/new_relic/metric_data.rb +51 -0
  88. data/lib/new_relic/metric_spec.rb +76 -0
  89. data/lib/new_relic/metrics.rb +9 -0
  90. data/lib/new_relic/noticed_error.rb +29 -0
  91. data/lib/new_relic/rack/browser_monitoring.rb +76 -0
  92. data/lib/new_relic/rack/developer_mode.rb +268 -0
  93. data/lib/new_relic/recipes.rb +77 -0
  94. data/lib/new_relic/stats.rb +335 -0
  95. data/lib/new_relic/timer_lib.rb +27 -0
  96. data/lib/new_relic/transaction_analysis.rb +77 -0
  97. data/lib/new_relic/transaction_analysis/segment_summary.rb +49 -0
  98. data/lib/new_relic/transaction_sample.rb +261 -0
  99. data/lib/new_relic/transaction_sample/composite_segment.rb +27 -0
  100. data/lib/new_relic/transaction_sample/fake_segment.rb +9 -0
  101. data/lib/new_relic/transaction_sample/segment.rb +203 -0
  102. data/lib/new_relic/transaction_sample/summary_segment.rb +21 -0
  103. data/lib/new_relic/url_rule.rb +14 -0
  104. data/lib/new_relic/version.rb +55 -0
  105. data/lib/newrelic_rpm.rb +49 -0
  106. data/lib/tasks/all.rb +4 -0
  107. data/lib/tasks/install.rake +7 -0
  108. data/lib/tasks/tests.rake +19 -0
  109. data/newrelic.yml +265 -0
  110. data/newrelic_rpm.gemspec +312 -0
  111. data/recipes/newrelic.rb +6 -0
  112. data/test/active_record_fixtures.rb +77 -0
  113. data/test/config/newrelic.yml +48 -0
  114. data/test/config/test_control.rb +48 -0
  115. data/test/fixtures/proc_cpuinfo.txt +575 -0
  116. data/test/new_relic/agent/agent/connect_test.rb +403 -0
  117. data/test/new_relic/agent/agent/start_test.rb +255 -0
  118. data/test/new_relic/agent/agent/start_worker_thread_test.rb +153 -0
  119. data/test/new_relic/agent/agent_test.rb +140 -0
  120. data/test/new_relic/agent/agent_test_controller.rb +77 -0
  121. data/test/new_relic/agent/agent_test_controller_test.rb +382 -0
  122. data/test/new_relic/agent/apdex_from_server_test.rb +9 -0
  123. data/test/new_relic/agent/beacon_configuration_test.rb +111 -0
  124. data/test/new_relic/agent/browser_monitoring_test.rb +323 -0
  125. data/test/new_relic/agent/busy_calculator_test.rb +81 -0
  126. data/test/new_relic/agent/database_test.rb +149 -0
  127. data/test/new_relic/agent/error_collector/notice_error_test.rb +257 -0
  128. data/test/new_relic/agent/error_collector_test.rb +192 -0
  129. data/test/new_relic/agent/instrumentation/active_record_instrumentation_test.rb +576 -0
  130. data/test/new_relic/agent/instrumentation/controller_instrumentation_test.rb +34 -0
  131. data/test/new_relic/agent/instrumentation/instrumentation_test.rb +11 -0
  132. data/test/new_relic/agent/instrumentation/metric_frame/pop_test.rb +171 -0
  133. data/test/new_relic/agent/instrumentation/metric_frame_test.rb +50 -0
  134. data/test/new_relic/agent/instrumentation/net_instrumentation_test.rb +84 -0
  135. data/test/new_relic/agent/instrumentation/queue_time_test.rb +382 -0
  136. data/test/new_relic/agent/instrumentation/rack_test.rb +35 -0
  137. data/test/new_relic/agent/instrumentation/task_instrumentation_test.rb +184 -0
  138. data/test/new_relic/agent/memcache_instrumentation_test.rb +143 -0
  139. data/test/new_relic/agent/method_tracer/class_methods/add_method_tracer_test.rb +164 -0
  140. data/test/new_relic/agent/method_tracer/instance_methods/trace_execution_scoped_test.rb +234 -0
  141. data/test/new_relic/agent/method_tracer_test.rb +386 -0
  142. data/test/new_relic/agent/mock_scope_listener.rb +23 -0
  143. data/test/new_relic/agent/rpm_agent_test.rb +149 -0
  144. data/test/new_relic/agent/sampler_test.rb +19 -0
  145. data/test/new_relic/agent/shim_agent_test.rb +20 -0
  146. data/test/new_relic/agent/sql_sampler_test.rb +192 -0
  147. data/test/new_relic/agent/stats_engine/metric_stats/harvest_test.rb +150 -0
  148. data/test/new_relic/agent/stats_engine/metric_stats_test.rb +82 -0
  149. data/test/new_relic/agent/stats_engine/samplers_test.rb +99 -0
  150. data/test/new_relic/agent/stats_engine_test.rb +220 -0
  151. data/test/new_relic/agent/transaction_info_test.rb +13 -0
  152. data/test/new_relic/agent/transaction_sample_builder_test.rb +219 -0
  153. data/test/new_relic/agent/transaction_sampler_test.rb +967 -0
  154. data/test/new_relic/agent/worker_loop_test.rb +66 -0
  155. data/test/new_relic/agent_test.rb +187 -0
  156. data/test/new_relic/collection_helper_test.rb +149 -0
  157. data/test/new_relic/command/deployments_test.rb +68 -0
  158. data/test/new_relic/control/class_methods_test.rb +62 -0
  159. data/test/new_relic/control/configuration_test.rb +84 -0
  160. data/test/new_relic/control/logging_methods_test.rb +185 -0
  161. data/test/new_relic/control_test.rb +256 -0
  162. data/test/new_relic/data_serialization_test.rb +208 -0
  163. data/test/new_relic/delayed_job_injection_test.rb +16 -0
  164. data/test/new_relic/local_environment_test.rb +85 -0
  165. data/test/new_relic/metric_data_test.rb +125 -0
  166. data/test/new_relic/metric_parser/metric_parser_test.rb +11 -0
  167. data/test/new_relic/metric_spec_test.rb +95 -0
  168. data/test/new_relic/rack/all_test.rb +11 -0
  169. data/test/new_relic/rack/browser_monitoring_test.rb +142 -0
  170. data/test/new_relic/rack/developer_mode_helper_test.rb +141 -0
  171. data/test/new_relic/rack/developer_mode_test.rb +74 -0
  172. data/test/new_relic/stats_test.rb +411 -0
  173. data/test/new_relic/transaction_analysis/segment_summary_test.rb +91 -0
  174. data/test/new_relic/transaction_analysis_test.rb +121 -0
  175. data/test/new_relic/transaction_sample/composite_segment_test.rb +35 -0
  176. data/test/new_relic/transaction_sample/fake_segment_test.rb +17 -0
  177. data/test/new_relic/transaction_sample/segment_test.rb +389 -0
  178. data/test/new_relic/transaction_sample/summary_segment_test.rb +31 -0
  179. data/test/new_relic/transaction_sample_subtest_test.rb +56 -0
  180. data/test/new_relic/transaction_sample_test.rb +177 -0
  181. data/test/new_relic/version_number_test.rb +89 -0
  182. data/test/script/build_test_gem.sh +51 -0
  183. data/test/script/ci.sh +94 -0
  184. data/test/script/ci_bench.sh +52 -0
  185. data/test/test_contexts.rb +29 -0
  186. data/test/test_helper.rb +155 -0
  187. data/ui/helpers/developer_mode_helper.rb +357 -0
  188. data/ui/helpers/google_pie_chart.rb +48 -0
  189. data/ui/views/layouts/newrelic_default.rhtml +47 -0
  190. data/ui/views/newrelic/_explain_plans.rhtml +27 -0
  191. data/ui/views/newrelic/_sample.rhtml +20 -0
  192. data/ui/views/newrelic/_segment.rhtml +28 -0
  193. data/ui/views/newrelic/_segment_limit_message.rhtml +1 -0
  194. data/ui/views/newrelic/_segment_row.rhtml +12 -0
  195. data/ui/views/newrelic/_show_sample_detail.rhtml +24 -0
  196. data/ui/views/newrelic/_show_sample_sql.rhtml +24 -0
  197. data/ui/views/newrelic/_show_sample_summary.rhtml +3 -0
  198. data/ui/views/newrelic/_sql_row.rhtml +16 -0
  199. data/ui/views/newrelic/_stack_trace.rhtml +15 -0
  200. data/ui/views/newrelic/_table.rhtml +12 -0
  201. data/ui/views/newrelic/explain_sql.rhtml +43 -0
  202. data/ui/views/newrelic/file/images/arrow-close.png +0 -0
  203. data/ui/views/newrelic/file/images/arrow-open.png +0 -0
  204. data/ui/views/newrelic/file/images/blue_bar.gif +0 -0
  205. data/ui/views/newrelic/file/images/file_icon.png +0 -0
  206. data/ui/views/newrelic/file/images/gray_bar.gif +0 -0
  207. data/ui/views/newrelic/file/images/new-relic-rpm-desktop.gif +0 -0
  208. data/ui/views/newrelic/file/images/new_relic_rpm_desktop.gif +0 -0
  209. data/ui/views/newrelic/file/images/textmate.png +0 -0
  210. data/ui/views/newrelic/file/javascript/jquery-1.4.2.js +6240 -0
  211. data/ui/views/newrelic/file/javascript/transaction_sample.js +120 -0
  212. data/ui/views/newrelic/file/stylesheets/style.css +490 -0
  213. data/ui/views/newrelic/index.rhtml +71 -0
  214. data/ui/views/newrelic/sample_not_found.rhtml +2 -0
  215. data/ui/views/newrelic/show_sample.rhtml +80 -0
  216. data/ui/views/newrelic/show_source.rhtml +3 -0
  217. data/ui/views/newrelic/threads.rhtml +53 -0
  218. data/vendor/gems/dependency_detection-0.0.1.build/LICENSE +5 -0
  219. data/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection.rb +67 -0
  220. data/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection/version.rb +3 -0
  221. data/vendor/gems/metric_parser-0.1.0.pre1/lib/metric_parser.rb +1 -0
  222. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser.rb +64 -0
  223. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/action_mailer.rb +14 -0
  224. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb +31 -0
  225. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_record.rb +33 -0
  226. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/apdex.rb +89 -0
  227. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/background_transaction.rb +7 -0
  228. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/client.rb +46 -0
  229. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller.rb +67 -0
  230. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_cpu.rb +43 -0
  231. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb +17 -0
  232. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database.rb +48 -0
  233. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb +24 -0
  234. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net.rb +28 -0
  235. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net_parser.rb +17 -0
  236. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/errors.rb +11 -0
  237. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/external.rb +55 -0
  238. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb +40 -0
  239. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/gc.rb +20 -0
  240. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/hibernate_session.rb +7 -0
  241. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java.rb +31 -0
  242. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java_parser.rb +17 -0
  243. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp.rb +34 -0
  244. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp_tag.rb +7 -0
  245. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/mem_cache.rb +55 -0
  246. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/metric_parser.rb +135 -0
  247. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb +27 -0
  248. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/other_transaction.rb +40 -0
  249. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet.rb +7 -0
  250. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_context_listener.rb +7 -0
  251. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_filter.rb +7 -0
  252. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb +27 -0
  253. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr_request_handler.rb +15 -0
  254. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring.rb +54 -0
  255. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_controller.rb +6 -0
  256. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_view.rb +6 -0
  257. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_action.rb +20 -0
  258. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_result.rb +20 -0
  259. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/version.rb +5 -0
  260. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/view.rb +70 -0
  261. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_frontend.rb +18 -0
  262. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_service.rb +14 -0
  263. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_transaction.rb +133 -0
  264. metadata +376 -0
@@ -0,0 +1,6 @@
1
+ # The capistrano recipes in plugins are automatically
2
+ # loaded from here. From gems, they are available from
3
+ # the lib directory. We have to make them available from
4
+ # both locations
5
+
6
+ require File.join(File.dirname(__FILE__),'..','lib','new_relic','recipes')
@@ -0,0 +1,77 @@
1
+ # Some test models
2
+ # These will get created and dropped during the active record tests
3
+ # Be sure and call setup and teardown
4
+ module ActiveRecordFixtures
5
+ extend self
6
+ def setup
7
+ ActiveRecordFixtures::Order.setup
8
+ ActiveRecordFixtures::Shipment.setup
9
+ end
10
+ def teardown
11
+ ActiveRecordFixtures::Shipment.teardown
12
+ ActiveRecordFixtures::Order.teardown
13
+ begin
14
+ super
15
+ rescue => e
16
+ end
17
+ end
18
+ class Order < ActiveRecord::Base
19
+ self.table_name = 'newrelic_test_orders'
20
+ has_and_belongs_to_many :shipments, :class_name => 'ActiveRecordFixtures::Shipment'
21
+ def self.setup
22
+ unless check_for_table
23
+ connection.create_table self.table_name, :force => true do |t|
24
+ t.column :name, :string
25
+ end
26
+ else
27
+ connection.execute("delete from #{self.table_name}")
28
+ end
29
+ end
30
+
31
+ def self.check_for_table
32
+ connection.table_exists?(self.table_name)
33
+ rescue => e
34
+ false
35
+ end
36
+
37
+ def self.add_delay
38
+ # Introduce a 5 ms delay into db operations on Orders
39
+ def connection.log_info *args
40
+ sleep 0.005
41
+ super *args
42
+ end
43
+ end
44
+ def self.teardown
45
+ def connection.log_info *args
46
+ super *args
47
+ end
48
+ end
49
+ end
50
+
51
+ class Shipment < ActiveRecord::Base
52
+ self.table_name = 'newrelic_test_shipment'
53
+ has_and_belongs_to_many :orders, :class_name => 'ActiveRecordFixtures::Order'
54
+ def self.setup
55
+ unless check_for_table
56
+ connection.create_table self.table_name, :force => true do |t|
57
+ # no other columns
58
+ end
59
+ connection.create_table 'orders_shipments', :force => true, :id => false do |t|
60
+ t.column :order_id, :integer
61
+ t.column :shipment_id, :integer
62
+ end
63
+ else
64
+ connection.execute("delete from #{self.table_name}")
65
+ end
66
+ end
67
+ def self.check_for_table
68
+ connection.table_exists?(self.table_name) && connection.table_exists?('orders_shipments')
69
+ rescue => e
70
+ false
71
+ end
72
+
73
+
74
+ def self.teardown
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,48 @@
1
+ # This is the config file loaded when running unit tests locally.
2
+ common: &default_settings
3
+ transaction_tracer:
4
+ enabled: true
5
+ record_sql: raw
6
+
7
+ test:
8
+ <<: *default_settings
9
+ host: localhost
10
+ port: 3000
11
+ log_level: info
12
+ capture_params: true
13
+ agent_enabled: false
14
+ monitor_mode: false
15
+ developer_mode: true
16
+ disable_samplers: true
17
+ api_host: 127.0.0.1
18
+ api_port: 443
19
+ message: '<%= generated_for_user %>'
20
+ license_key: '<%= license_key %>'
21
+ agent_enabled: auto
22
+ apdex_t: 1.1
23
+ app_name:
24
+ - a
25
+ - b
26
+ - c
27
+ log_file_path: <%= ::Rails::VERSION::MAJOR == 3 ? Rails.root : RAILS_ROOT %>/log
28
+
29
+ # Some fixtures for newrelic.yml parsing tests
30
+ erb_value: <%= 'hey'*3 %>
31
+ tval: true
32
+ tstring: 'true'
33
+ fval: false
34
+ yval: yes
35
+ sval: sure
36
+
37
+ transaction_tracer:
38
+ record_sql: raw
39
+ transaction_threshold: Apdex_f # case insensitive
40
+ explain_threshold: 0.1
41
+ explain_enabled: true
42
+ stack_trace_threshold: 0.1
43
+
44
+ error_collector:
45
+ enabled: true
46
+ capture_source: true
47
+
48
+
@@ -0,0 +1,48 @@
1
+ require 'new_relic/control/frameworks/rails'
2
+ require 'new_relic/control/frameworks/rails3'
3
+
4
+ if defined?(Rails) && Rails.respond_to?(:version) && Rails.version.to_i == 3
5
+ parent_class = NewRelic::Control::Frameworks::Rails3
6
+ else
7
+ parent_class = NewRelic::Control::Frameworks::Rails
8
+ end
9
+
10
+
11
+ class NewRelic::Control::Frameworks::Test < parent_class
12
+ def env
13
+ 'test'
14
+ end
15
+ def app
16
+ if defined?(Rails) && Rails.respond_to?(:version) && Rails.version.to_i == 3
17
+ :rails3
18
+ else
19
+ :rails
20
+ end
21
+ end
22
+
23
+ def initialize *args
24
+ super
25
+ setup_log
26
+ end
27
+ # when running tests, don't write out stderr
28
+ def log!(msg, level=:info)
29
+ log.send level, msg if log
30
+ end
31
+
32
+ # Add the default route in case it's missing. Need it for testing.
33
+ def install_devmode_route
34
+ super
35
+ ActionController::Routing::RouteSet.class_eval do
36
+ return if defined? draw_without_test_route
37
+ def draw_with_test_route
38
+ draw_without_test_route do | map |
39
+ map.connect ':controller/:action/:id'
40
+ yield map
41
+ end
42
+ end
43
+ alias_method_chain :draw, :test_route
44
+ end
45
+ # Force the routes to be reloaded
46
+ ActionController::Routing::Routes.reload!
47
+ end
48
+ end
@@ -0,0 +1,575 @@
1
+ processor : 0
2
+ vendor_id : GenuineIntel
3
+ cpu family : 6
4
+ model : 44
5
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
6
+ stepping : 2
7
+ cpu MHz : 2660.090
8
+ cache size : 12288 KB
9
+ physical id : 1
10
+ siblings : 12
11
+ core id : 0
12
+ cpu cores : 6
13
+ apicid : 32
14
+ fpu : yes
15
+ fpu_exception : yes
16
+ cpuid level : 11
17
+ wp : yes
18
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
19
+ bogomips : 5320.18
20
+ clflush size : 64
21
+ cache_alignment : 64
22
+ address sizes : 40 bits physical, 48 bits virtual
23
+ power management: [8]
24
+
25
+ processor : 1
26
+ vendor_id : GenuineIntel
27
+ cpu family : 6
28
+ model : 44
29
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
30
+ stepping : 2
31
+ cpu MHz : 2660.090
32
+ cache size : 12288 KB
33
+ physical id : 0
34
+ siblings : 12
35
+ core id : 0
36
+ cpu cores : 6
37
+ apicid : 0
38
+ fpu : yes
39
+ fpu_exception : yes
40
+ cpuid level : 11
41
+ wp : yes
42
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
43
+ bogomips : 5320.05
44
+ clflush size : 64
45
+ cache_alignment : 64
46
+ address sizes : 40 bits physical, 48 bits virtual
47
+ power management: [8]
48
+
49
+ processor : 2
50
+ vendor_id : GenuineIntel
51
+ cpu family : 6
52
+ model : 44
53
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
54
+ stepping : 2
55
+ cpu MHz : 2660.090
56
+ cache size : 12288 KB
57
+ physical id : 1
58
+ siblings : 12
59
+ core id : 1
60
+ cpu cores : 6
61
+ apicid : 34
62
+ fpu : yes
63
+ fpu_exception : yes
64
+ cpuid level : 11
65
+ wp : yes
66
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
67
+ bogomips : 5320.02
68
+ clflush size : 64
69
+ cache_alignment : 64
70
+ address sizes : 40 bits physical, 48 bits virtual
71
+ power management: [8]
72
+
73
+ processor : 3
74
+ vendor_id : GenuineIntel
75
+ cpu family : 6
76
+ model : 44
77
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
78
+ stepping : 2
79
+ cpu MHz : 2660.090
80
+ cache size : 12288 KB
81
+ physical id : 0
82
+ siblings : 12
83
+ core id : 1
84
+ cpu cores : 6
85
+ apicid : 2
86
+ fpu : yes
87
+ fpu_exception : yes
88
+ cpuid level : 11
89
+ wp : yes
90
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
91
+ bogomips : 5320.05
92
+ clflush size : 64
93
+ cache_alignment : 64
94
+ address sizes : 40 bits physical, 48 bits virtual
95
+ power management: [8]
96
+
97
+ processor : 4
98
+ vendor_id : GenuineIntel
99
+ cpu family : 6
100
+ model : 44
101
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
102
+ stepping : 2
103
+ cpu MHz : 2660.090
104
+ cache size : 12288 KB
105
+ physical id : 1
106
+ siblings : 12
107
+ core id : 2
108
+ cpu cores : 6
109
+ apicid : 36
110
+ fpu : yes
111
+ fpu_exception : yes
112
+ cpuid level : 11
113
+ wp : yes
114
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
115
+ bogomips : 5319.95
116
+ clflush size : 64
117
+ cache_alignment : 64
118
+ address sizes : 40 bits physical, 48 bits virtual
119
+ power management: [8]
120
+
121
+ processor : 5
122
+ vendor_id : GenuineIntel
123
+ cpu family : 6
124
+ model : 44
125
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
126
+ stepping : 2
127
+ cpu MHz : 2660.090
128
+ cache size : 12288 KB
129
+ physical id : 0
130
+ siblings : 12
131
+ core id : 2
132
+ cpu cores : 6
133
+ apicid : 4
134
+ fpu : yes
135
+ fpu_exception : yes
136
+ cpuid level : 11
137
+ wp : yes
138
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
139
+ bogomips : 5320.06
140
+ clflush size : 64
141
+ cache_alignment : 64
142
+ address sizes : 40 bits physical, 48 bits virtual
143
+ power management: [8]
144
+
145
+ processor : 6
146
+ vendor_id : GenuineIntel
147
+ cpu family : 6
148
+ model : 44
149
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
150
+ stepping : 2
151
+ cpu MHz : 2660.090
152
+ cache size : 12288 KB
153
+ physical id : 1
154
+ siblings : 12
155
+ core id : 8
156
+ cpu cores : 6
157
+ apicid : 48
158
+ fpu : yes
159
+ fpu_exception : yes
160
+ cpuid level : 11
161
+ wp : yes
162
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
163
+ bogomips : 5320.02
164
+ clflush size : 64
165
+ cache_alignment : 64
166
+ address sizes : 40 bits physical, 48 bits virtual
167
+ power management: [8]
168
+
169
+ processor : 7
170
+ vendor_id : GenuineIntel
171
+ cpu family : 6
172
+ model : 44
173
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
174
+ stepping : 2
175
+ cpu MHz : 2660.090
176
+ cache size : 12288 KB
177
+ physical id : 0
178
+ siblings : 12
179
+ core id : 8
180
+ cpu cores : 6
181
+ apicid : 16
182
+ fpu : yes
183
+ fpu_exception : yes
184
+ cpuid level : 11
185
+ wp : yes
186
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
187
+ bogomips : 5319.98
188
+ clflush size : 64
189
+ cache_alignment : 64
190
+ address sizes : 40 bits physical, 48 bits virtual
191
+ power management: [8]
192
+
193
+ processor : 8
194
+ vendor_id : GenuineIntel
195
+ cpu family : 6
196
+ model : 44
197
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
198
+ stepping : 2
199
+ cpu MHz : 2660.090
200
+ cache size : 12288 KB
201
+ physical id : 1
202
+ siblings : 12
203
+ core id : 9
204
+ cpu cores : 6
205
+ apicid : 50
206
+ fpu : yes
207
+ fpu_exception : yes
208
+ cpuid level : 11
209
+ wp : yes
210
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
211
+ bogomips : 5320.02
212
+ clflush size : 64
213
+ cache_alignment : 64
214
+ address sizes : 40 bits physical, 48 bits virtual
215
+ power management: [8]
216
+
217
+ processor : 9
218
+ vendor_id : GenuineIntel
219
+ cpu family : 6
220
+ model : 44
221
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
222
+ stepping : 2
223
+ cpu MHz : 2660.090
224
+ cache size : 12288 KB
225
+ physical id : 0
226
+ siblings : 12
227
+ core id : 9
228
+ cpu cores : 6
229
+ apicid : 18
230
+ fpu : yes
231
+ fpu_exception : yes
232
+ cpuid level : 11
233
+ wp : yes
234
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
235
+ bogomips : 5319.99
236
+ clflush size : 64
237
+ cache_alignment : 64
238
+ address sizes : 40 bits physical, 48 bits virtual
239
+ power management: [8]
240
+
241
+ processor : 10
242
+ vendor_id : GenuineIntel
243
+ cpu family : 6
244
+ model : 44
245
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
246
+ stepping : 2
247
+ cpu MHz : 2660.090
248
+ cache size : 12288 KB
249
+ physical id : 1
250
+ siblings : 12
251
+ core id : 10
252
+ cpu cores : 6
253
+ apicid : 52
254
+ fpu : yes
255
+ fpu_exception : yes
256
+ cpuid level : 11
257
+ wp : yes
258
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
259
+ bogomips : 5320.02
260
+ clflush size : 64
261
+ cache_alignment : 64
262
+ address sizes : 40 bits physical, 48 bits virtual
263
+ power management: [8]
264
+
265
+ processor : 11
266
+ vendor_id : GenuineIntel
267
+ cpu family : 6
268
+ model : 44
269
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
270
+ stepping : 2
271
+ cpu MHz : 2660.090
272
+ cache size : 12288 KB
273
+ physical id : 0
274
+ siblings : 12
275
+ core id : 10
276
+ cpu cores : 6
277
+ apicid : 20
278
+ fpu : yes
279
+ fpu_exception : yes
280
+ cpuid level : 11
281
+ wp : yes
282
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
283
+ bogomips : 5320.02
284
+ clflush size : 64
285
+ cache_alignment : 64
286
+ address sizes : 40 bits physical, 48 bits virtual
287
+ power management: [8]
288
+
289
+ processor : 12
290
+ vendor_id : GenuineIntel
291
+ cpu family : 6
292
+ model : 44
293
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
294
+ stepping : 2
295
+ cpu MHz : 2660.090
296
+ cache size : 12288 KB
297
+ physical id : 1
298
+ siblings : 12
299
+ core id : 0
300
+ cpu cores : 6
301
+ apicid : 33
302
+ fpu : yes
303
+ fpu_exception : yes
304
+ cpuid level : 11
305
+ wp : yes
306
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
307
+ bogomips : 5319.94
308
+ clflush size : 64
309
+ cache_alignment : 64
310
+ address sizes : 40 bits physical, 48 bits virtual
311
+ power management: [8]
312
+
313
+ processor : 13
314
+ vendor_id : GenuineIntel
315
+ cpu family : 6
316
+ model : 44
317
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
318
+ stepping : 2
319
+ cpu MHz : 2660.090
320
+ cache size : 12288 KB
321
+ physical id : 0
322
+ siblings : 12
323
+ core id : 0
324
+ cpu cores : 6
325
+ apicid : 1
326
+ fpu : yes
327
+ fpu_exception : yes
328
+ cpuid level : 11
329
+ wp : yes
330
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
331
+ bogomips : 5320.05
332
+ clflush size : 64
333
+ cache_alignment : 64
334
+ address sizes : 40 bits physical, 48 bits virtual
335
+ power management: [8]
336
+
337
+ processor : 14
338
+ vendor_id : GenuineIntel
339
+ cpu family : 6
340
+ model : 44
341
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
342
+ stepping : 2
343
+ cpu MHz : 2660.090
344
+ cache size : 12288 KB
345
+ physical id : 1
346
+ siblings : 12
347
+ core id : 1
348
+ cpu cores : 6
349
+ apicid : 35
350
+ fpu : yes
351
+ fpu_exception : yes
352
+ cpuid level : 11
353
+ wp : yes
354
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
355
+ bogomips : 5320.02
356
+ clflush size : 64
357
+ cache_alignment : 64
358
+ address sizes : 40 bits physical, 48 bits virtual
359
+ power management: [8]
360
+
361
+ processor : 15
362
+ vendor_id : GenuineIntel
363
+ cpu family : 6
364
+ model : 44
365
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
366
+ stepping : 2
367
+ cpu MHz : 2660.090
368
+ cache size : 12288 KB
369
+ physical id : 0
370
+ siblings : 12
371
+ core id : 1
372
+ cpu cores : 6
373
+ apicid : 3
374
+ fpu : yes
375
+ fpu_exception : yes
376
+ cpuid level : 11
377
+ wp : yes
378
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
379
+ bogomips : 5320.05
380
+ clflush size : 64
381
+ cache_alignment : 64
382
+ address sizes : 40 bits physical, 48 bits virtual
383
+ power management: [8]
384
+
385
+ processor : 16
386
+ vendor_id : GenuineIntel
387
+ cpu family : 6
388
+ model : 44
389
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
390
+ stepping : 2
391
+ cpu MHz : 2660.090
392
+ cache size : 12288 KB
393
+ physical id : 1
394
+ siblings : 12
395
+ core id : 2
396
+ cpu cores : 6
397
+ apicid : 37
398
+ fpu : yes
399
+ fpu_exception : yes
400
+ cpuid level : 11
401
+ wp : yes
402
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
403
+ bogomips : 5320.02
404
+ clflush size : 64
405
+ cache_alignment : 64
406
+ address sizes : 40 bits physical, 48 bits virtual
407
+ power management: [8]
408
+
409
+ processor : 17
410
+ vendor_id : GenuineIntel
411
+ cpu family : 6
412
+ model : 44
413
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
414
+ stepping : 2
415
+ cpu MHz : 2660.090
416
+ cache size : 12288 KB
417
+ physical id : 0
418
+ siblings : 12
419
+ core id : 2
420
+ cpu cores : 6
421
+ apicid : 5
422
+ fpu : yes
423
+ fpu_exception : yes
424
+ cpuid level : 11
425
+ wp : yes
426
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
427
+ bogomips : 5320.05
428
+ clflush size : 64
429
+ cache_alignment : 64
430
+ address sizes : 40 bits physical, 48 bits virtual
431
+ power management: [8]
432
+
433
+ processor : 18
434
+ vendor_id : GenuineIntel
435
+ cpu family : 6
436
+ model : 44
437
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
438
+ stepping : 2
439
+ cpu MHz : 2660.090
440
+ cache size : 12288 KB
441
+ physical id : 1
442
+ siblings : 12
443
+ core id : 8
444
+ cpu cores : 6
445
+ apicid : 49
446
+ fpu : yes
447
+ fpu_exception : yes
448
+ cpuid level : 11
449
+ wp : yes
450
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
451
+ bogomips : 5330.86
452
+ clflush size : 64
453
+ cache_alignment : 64
454
+ address sizes : 40 bits physical, 48 bits virtual
455
+ power management: [8]
456
+
457
+ processor : 19
458
+ vendor_id : GenuineIntel
459
+ cpu family : 6
460
+ model : 44
461
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
462
+ stepping : 2
463
+ cpu MHz : 2660.090
464
+ cache size : 12288 KB
465
+ physical id : 0
466
+ siblings : 12
467
+ core id : 8
468
+ cpu cores : 6
469
+ apicid : 17
470
+ fpu : yes
471
+ fpu_exception : yes
472
+ cpuid level : 11
473
+ wp : yes
474
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
475
+ bogomips : 5320.05
476
+ clflush size : 64
477
+ cache_alignment : 64
478
+ address sizes : 40 bits physical, 48 bits virtual
479
+ power management: [8]
480
+
481
+ processor : 20
482
+ vendor_id : GenuineIntel
483
+ cpu family : 6
484
+ model : 44
485
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
486
+ stepping : 2
487
+ cpu MHz : 2660.090
488
+ cache size : 12288 KB
489
+ physical id : 1
490
+ siblings : 12
491
+ core id : 9
492
+ cpu cores : 6
493
+ apicid : 51
494
+ fpu : yes
495
+ fpu_exception : yes
496
+ cpuid level : 11
497
+ wp : yes
498
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
499
+ bogomips : 5320.02
500
+ clflush size : 64
501
+ cache_alignment : 64
502
+ address sizes : 40 bits physical, 48 bits virtual
503
+ power management: [8]
504
+
505
+ processor : 21
506
+ vendor_id : GenuineIntel
507
+ cpu family : 6
508
+ model : 44
509
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
510
+ stepping : 2
511
+ cpu MHz : 2660.090
512
+ cache size : 12288 KB
513
+ physical id : 0
514
+ siblings : 12
515
+ core id : 9
516
+ cpu cores : 6
517
+ apicid : 19
518
+ fpu : yes
519
+ fpu_exception : yes
520
+ cpuid level : 11
521
+ wp : yes
522
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
523
+ bogomips : 5320.01
524
+ clflush size : 64
525
+ cache_alignment : 64
526
+ address sizes : 40 bits physical, 48 bits virtual
527
+ power management: [8]
528
+
529
+ processor : 22
530
+ vendor_id : GenuineIntel
531
+ cpu family : 6
532
+ model : 44
533
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
534
+ stepping : 2
535
+ cpu MHz : 2660.090
536
+ cache size : 12288 KB
537
+ physical id : 1
538
+ siblings : 12
539
+ core id : 10
540
+ cpu cores : 6
541
+ apicid : 53
542
+ fpu : yes
543
+ fpu_exception : yes
544
+ cpuid level : 11
545
+ wp : yes
546
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
547
+ bogomips : 5320.05
548
+ clflush size : 64
549
+ cache_alignment : 64
550
+ address sizes : 40 bits physical, 48 bits virtual
551
+ power management: [8]
552
+
553
+ processor : 23
554
+ vendor_id : GenuineIntel
555
+ cpu family : 6
556
+ model : 44
557
+ model name : Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
558
+ stepping : 2
559
+ cpu MHz : 2660.090
560
+ cache size : 12288 KB
561
+ physical id : 0
562
+ siblings : 12
563
+ core id : 10
564
+ cpu cores : 6
565
+ apicid : 21
566
+ fpu : yes
567
+ fpu_exception : yes
568
+ cpuid level : 11
569
+ wp : yes
570
+ flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
571
+ bogomips : 5320.02
572
+ clflush size : 64
573
+ cache_alignment : 64
574
+ address sizes : 40 bits physical, 48 bits virtual
575
+ power management: [8]