Class: Blacklight::RuntimeRegistry::Stats

Inherits:
Object
  • Object
show all
Defined in:
lib/blacklight/runtime_registry.rb

Overview

per-thread/fiber Solr timing, read by Blacklight::ControllerRuntime

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStats Also known as: reset

Returns a new instance of Stats.



11
12
13
14
# File 'lib/blacklight/runtime_registry.rb', line 11

def initialize
  @solr_runtime = 0.0
  @solr_query_count = 0
end

Instance Attribute Details

#solr_query_countObject

Returns the value of attribute solr_query_count.



9
10
11
# File 'lib/blacklight/runtime_registry.rb', line 9

def solr_query_count
  @solr_query_count
end

#solr_runtimeObject

Returns the value of attribute solr_runtime.



9
10
11
# File 'lib/blacklight/runtime_registry.rb', line 9

def solr_runtime
  @solr_runtime
end