class Object
Public Instance Methods
query(database, collection, selector, options = {})
click to toggle source
# File lib/mongo_profiler/extensions/moped.rb, line 4 def query(database, collection, selector, options = {}) started_at = Time.now result = original_query(database, collection, selector, options) begin MongoProfiler::Profile.register(started_at, database, collection, selector, options) rescue => e p "MongoProfiler: #{e.message}" end result end