Skip to content

Instantly share code, notes, and snippets.

@nono
Created March 28, 2014 10:12
Show Gist options
  • Save nono/9829448 to your computer and use it in GitHub Desktop.
Save nono/9829448 to your computer and use it in GitHub Desktop.
Profiling a request, with a bottleneck on therubyracer
100.0% - …/bin/unicorn#<main>
167 Collapsed methods (show)
100.0% - …/action_view/template.rb#block in render
97.0% - …/complete_creations/_single_address.html.haml#_app_views_orders_wizard_complete_creations__single_address_html_haml__386521348274838379_97485080
20 Collapsed methods (show)
97.0% - …/complete_creations/_single_address.html.haml#block in _app_views_orders_wizard_complete_creations__single_address_html_haml__386521348274838379_97485080
85.0% - …/complete_creations/_single_address.html.haml#each_with_index
21 Collapsed methods (show)
85.0% - …/ordering/complete_creations.rb#option_price_structure
83.0% - …/ordering/complete_creations.rb#option_base_price_with_sale_applied
6 Collapsed methods (show)
82.0% - …/discounting/discount_creator.rb#block in call
53.0% - …/discounting/discount_creator.rb#process_offer
53.0% - …/discounting/discount_creator.rb#evaluate_discount_rules
49.0% - …/v8/context.rb#eval
16 Collapsed methods (show)
48.0% - …/conversion/class.rb#intercept
41.0% - …/v8/error.rb#protect
41.0% - …/conversion/class.rb#block in intercept
37.0% - …/conversion/class.rb#call
2 Collapsed methods (show)
36.0% - …/access/names.rb#accessible_names
32.0% - …/access/names.rb#tap
32.0% - …/access/names.rb#block in accessible_names
14.0% - …/2.1.0/set.rb#reject!
9.0% - …/2.1.0/set.rb#merge
7.7% - …/access/names.rb#map
2.6% - …/2.1.0/set.rb#to_set
3.0% - …/v8/context.rb#to_v8
4.7% - …/v8/context.rb#current
3.9% - …/discounting/discount_creator.rb#tap
28.0% - …/discounting/discountable_factory.rb#process!
28.0% - …/discounting/discountable_factory.rb#public_send
28.0% - …/discounting/discountable_factory.rb#from_order_form
24.0% - …/discounting/discountable_factory.rb#each_with_object
3 Collapsed methods (show)
24.0% - …/discounting/discountable_factory.rb#block (2 levels) in from_order_form
19.0% - …/discounting/discountable_factory.rb#offers_blank_or_applicable_to?
3 Collapsed methods (show)
19.0% - …/models/special_offer.rb#applicable_to?
15.0% - …/relation/calculations.rb#count
2.6% - …/scoping/named.rb#block in scope
5.2% - …/discounting/discountable_factory.rb#new
3.9% - …/discounting/discountable_factory.rb#offers_blank_or_applicable_to?
9.9% - …/simple_form/form_builder.rb#collection_radio_buttons
2.6% - …/complete_creations/_multi_addresses.html.haml#_app_views_orders_wizard_complete_creations__multi_addresses_html_haml___190873820917877519_146412800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment