Method: QueryCounter::RequestHelper#qc_log_count_objects

Defined in:
lib/query_counter/request_helper.rb

#qc_log_count_objectsObject



26
27
28
29
30
31
32
33
34
35
# File 'lib/query_counter/request_helper.rb', line 26

def qc_log_count_objects
  diff_count_objects = {}
  ObjectSpace.count_objects.each do |name, count|
    if (diff = (count - Thread.current[:starting_count_objects][name].to_i)) > 0
      diff_count_objects[name] = diff
    end
  end

  logger.info "Objects: #{diff_count_objects}"
end