Class: NewRelic::Agent::Transaction::SlowestSampleBuffer
- Inherits:
-
TransactionSampleBuffer
- Object
- TransactionSampleBuffer
- NewRelic::Agent::Transaction::SlowestSampleBuffer
- Defined in:
- lib/new_relic/agent/transaction/slowest_sample_buffer.rb
Constant Summary collapse
- CAPACITY =
1
Constants inherited from TransactionSampleBuffer
TransactionSampleBuffer::SINGLE_BUFFER_MAX
Instance Attribute Summary
Attributes inherited from TransactionSampleBuffer
Instance Method Summary collapse
Methods inherited from TransactionSampleBuffer
#enabled?, #full?, #harvest_samples, #initialize, #max_capacity, #reset!, #store, #store_previous, #truncate_samples, #truncate_samples_if_needed, #visit_node
Constructor Details
This class inherits a constructor from NewRelic::Agent::Transaction::TransactionSampleBuffer
Instance Method Details
#allow_sample?(sample) ⇒ Boolean
17 18 19 |
# File 'lib/new_relic/agent/transaction/slowest_sample_buffer.rb', line 17 def allow_sample?(sample) sample.threshold && sample.duration >= sample.threshold end |
#capacity ⇒ Object
13 14 15 |
# File 'lib/new_relic/agent/transaction/slowest_sample_buffer.rb', line 13 def capacity CAPACITY end |