Skip to content

Instantly share code, notes, and snippets.

@jgonera
Created October 20, 2011 21:09
Show Gist options
  • Select an option

  • Save jgonera/1302398 to your computer and use it in GitHub Desktop.

Select an option

Save jgonera/1302398 to your computer and use it in GitHub Desktop.
Profiling Mongoid (?) problem
Total: 24 samples
12 50.0% 50.0% 12 50.0% garbage_collector
2 8.3% 58.3% 2 8.3% Hash#[]=
1 4.2% 62.5% 1 4.2% ActiveSupport::Notifications::Fanout#publish
1 4.2% 66.7% 1 4.2% Array#inspect
1 4.2% 70.8% 1 4.2% BSON::OrderedHash.allocate
1 4.2% 75.0% 3 12.5% CBson.deserialize
1 4.2% 79.2% 1 4.2% Kernel#dup
1 4.2% 83.3% 1 4.2% Kernel#tap
1 4.2% 87.5% 1 4.2% Mongoid::Logger#debug
1 4.2% 91.7% 12 50.0% Rack::Mount::RouteSet#recognize
1 4.2% 95.8% 1 4.2% Rack::Request#path_info
1 4.2% 100.0% 1 4.2% String#=~
0 0.0% 100.0% 9 37.5% AbstractController::Base#process
0 0.0% 100.0% 7 29.2% AbstractController::Base#process_action
0 0.0% 100.0% 7 29.2% AbstractController::Callbacks#process_action
0 0.0% 100.0% 9 37.5% AbstractController::Rendering#process
0 0.0% 100.0% 7 29.2% ActionController::ImplicitRender#send_action
0 0.0% 100.0% 9 37.5% ActionController::Instrumentation#process_action
0 0.0% 100.0% 9 37.5% ActionController::Metal#dispatch
0 0.0% 100.0% 9 37.5% ActionController::ParamsWrapper#process_action
0 0.0% 100.0% 9 37.5% ActionController::RackDelegation#dispatch
0 0.0% 100.0% 7 29.2% ActionController::Rendering#process_action
0 0.0% 100.0% 7 29.2% ActionController::Rescue#process_action
0 0.0% 100.0% 12 50.0% ActionDispatch::BestStandardsSupport#call
0 0.0% 100.0% 12 50.0% ActionDispatch::Callbacks#_run_call_callbacks
0 0.0% 100.0% 12 50.0% ActionDispatch::Callbacks#call
0 0.0% 100.0% 12 50.0% ActionDispatch::Cookies#call
0 0.0% 100.0% 12 50.0% ActionDispatch::Flash#call
0 0.0% 100.0% 12 50.0% ActionDispatch::Head#call
0 0.0% 100.0% 1 4.2% ActionDispatch::Http::FilterParameters#filtered_parameters
0 0.0% 100.0% 1 4.2% ActionDispatch::Http::ParameterFilter#filter
0 0.0% 100.0% 12 50.0% ActionDispatch::ParamsParser#call
0 0.0% 100.0% 12 50.0% ActionDispatch::RemoteIp#call
0 0.0% 100.0% 12 50.0% ActionDispatch::Routing::RouteSet#call
0 0.0% 100.0% 9 37.5% ActionDispatch::Routing::RouteSet::Dispatcher#call
0 0.0% 100.0% 9 37.5% ActionDispatch::Routing::RouteSet::Dispatcher#dispatch
0 0.0% 100.0% 12 50.0% ActionDispatch::ShowExceptions#call
0 0.0% 100.0% 12 50.0% ActiveSupport::Cache::Strategy::LocalCache::Middleware#call
0 0.0% 100.0% 12 50.0% ActiveSupport::Callbacks#run_callbacks
0 0.0% 100.0% 8 33.3% ActiveSupport::Notifications::Instrumenter#instrument
0 0.0% 100.0% 11 45.8% Array#optimized_each
0 0.0% 100.0% 1 4.2% Array#to_default_s
0 0.0% 100.0% 1 4.2% Array#to_formatted_s
0 0.0% 100.0% 3 12.5% Class#deserialize
0 0.0% 100.0% 1 4.2% Enumerable#find
0 0.0% 100.0% 12 50.0% EventMachine.run_machine
0 0.0% 100.0% 1 4.2% Hash#each
0 0.0% 100.0% 12 50.0% Integer#times
0 0.0% 100.0% 12 50.0% Kernel#catch
0 0.0% 100.0% 1 4.2% Kernel#clone
0 0.0% 100.0% 1 4.2% Kernel#initialize_clone
0 0.0% 100.0% 12 50.0% Kernel#load
0 0.0% 100.0% 8 33.3% Module#instrument
0 0.0% 100.0% 12 50.0% Module#run
0 0.0% 100.0% 5 20.8% Mongo::Collection#find_one
0 0.0% 100.0% 3 12.5% Mongo::Connection#read_documents
0 0.0% 100.0% 3 12.5% Mongo::Connection#receive
0 0.0% 100.0% 3 12.5% Mongo::Connection#receive_message
0 0.0% 100.0% 5 20.8% Mongo::Cursor#next
0 0.0% 100.0% 5 20.8% Mongo::Cursor#refresh
0 0.0% 100.0% 5 20.8% Mongo::Cursor#send_initial_query
0 0.0% 100.0% 5 20.8% Mongo::Logging#instrument
0 0.0% 100.0% 2 8.3% Mongo::Logging#log_operation
0 0.0% 100.0% 12 50.0% Mongoid#unit_of_work
0 0.0% 100.0% 5 20.8% Mongoid::Collection#find_one
0 0.0% 100.0% 5 20.8% Mongoid::Collections::Master#find_one
0 0.0% 100.0% 5 20.8% Mongoid::Collections::Retry#retry_on_connection_failure
0 0.0% 100.0% 5 20.8% Mongoid::Contexts::Mongo#first
0 0.0% 100.0% 5 20.8% Mongoid::Criteria#first
0 0.0% 100.0% 1 4.2% Mongoid::Criteria#initialize_copy
0 0.0% 100.0% 2 8.3% Mongoid::Criteria#search
0 0.0% 100.0% 5 20.8% Mongoid::Criterion::Inclusion#execute_or_raise
0 0.0% 100.0% 7 29.2% Mongoid::Criterion::Inclusion#find
0 0.0% 100.0% 5 20.8% Mongoid::Criterion::Inclusion#from_map_or_db
0 0.0% 100.0% 2 8.3% Mongoid::Criterion::Inclusion#where
0 0.0% 100.0% 2 8.3% Mongoid::Criterion::Optional#for_ids
0 0.0% 100.0% 7 29.2% Mongoid::Finders#find
0 0.0% 100.0% 3 12.5% Mutex#synchronize
0 0.0% 100.0% 7 29.2% ProjectsController#_run__886273523720529005__process_action__1111596707065732076__callbacks
0 0.0% 100.0% 7 29.2% ProjectsController#_run_process_action_callbacks
0 0.0% 100.0% 7 29.2% ProjectsController#poll
0 0.0% 100.0% 12 50.0% Rack::Cache::Context#call
0 0.0% 100.0% 12 50.0% Rack::Cache::Context#call!
0 0.0% 100.0% 12 50.0% Rack::Cache::Context#forward
0 0.0% 100.0% 12 50.0% Rack::Cache::Context#invalidate
0 0.0% 100.0% 12 50.0% Rack::Cache::Context#pass
0 0.0% 100.0% 12 50.0% Rack::ConditionalGet#call
0 0.0% 100.0% 12 50.0% Rack::ETag#call
0 0.0% 100.0% 12 50.0% Rack::Lock#call
0 0.0% 100.0% 12 50.0% Rack::MethodOverride#call
0 0.0% 100.0% 12 50.0% Rack::Mongoid::Middleware::IdentityMap#call
0 0.0% 100.0% 12 50.0% Rack::Mount::RouteSet#call
0 0.0% 100.0% 12 50.0% Rack::PerftoolsProfiler::ProfileOnce#act
0 0.0% 100.0% 12 50.0% Rack::PerftoolsProfiler::Profiler#profile
0 0.0% 100.0% 12 50.0% Rack::PerftoolsProfiler::ProfilerMiddleware#call
0 0.0% 100.0% 12 50.0% Rack::PerftoolsProfiler::ProfilerMiddleware#call_app
0 0.0% 100.0% 12 50.0% Rack::Runtime#call
0 0.0% 100.0% 12 50.0% Rack::Sendfile#call
0 0.0% 100.0% 12 50.0% Rack::Session::Abstract::ID#call
0 0.0% 100.0% 12 50.0% Rack::Session::Abstract::ID#context
0 0.0% 100.0% 12 50.0% Rails::Engine#call
0 0.0% 100.0% 12 50.0% Rails::Rack::Logger#call
0 0.0% 100.0% 12 50.0% Rails::Railtie::Configurable::ClassMethods#method_missing
0 0.0% 100.0% 12 50.0% Thin::Backends::Base#start
0 0.0% 100.0% 12 50.0% Thin::Connection#pre_process
0 0.0% 100.0% 12 50.0% Thin::Connection#process
0 0.0% 100.0% 12 50.0% Thin::Connection#receive_data
0 0.0% 100.0% 12 50.0% Thin::Controllers::Controller#start
0 0.0% 100.0% 12 50.0% Thin::Runner#run!
0 0.0% 100.0% 12 50.0% Thin::Runner#run_command
0 0.0% 100.0% 12 50.0% Thin::Server#start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment