Class: Blacklight::RuntimeRegistry::Stats
- Inherits:
-
Object
- Object
- Blacklight::RuntimeRegistry::Stats
- Defined in:
- lib/blacklight/runtime_registry.rb
Overview
per-thread/fiber Solr timing, read by Blacklight::ControllerRuntime
Instance Attribute Summary collapse
-
#solr_query_count ⇒ Object
Returns the value of attribute solr_query_count.
-
#solr_runtime ⇒ Object
Returns the value of attribute solr_runtime.
Instance Method Summary collapse
-
#initialize ⇒ Stats
(also: #reset)
constructor
A new instance of Stats.
Constructor Details
#initialize ⇒ Stats 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_count ⇒ Object
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_runtime ⇒ Object
Returns the value of attribute solr_runtime.
9 10 11 |
# File 'lib/blacklight/runtime_registry.rb', line 9 def solr_runtime @solr_runtime end |