Class: HubStep::Internal::Instrumenter::Memory
- Inherits:
-
Object
- Object
- HubStep::Internal::Instrumenter::Memory
- Defined in:
- lib/hubstep/internal/instrumenter/memory.rb
Overview
A memory instrumenter to be used in to test instrumentation. This class records each instrument call in a HubStep::Internal::Instrumenter::Memory::Event instance and stores the instance in an events array.
Defined Under Namespace
Classes: Event
Instance Attribute Summary collapse
-
#events ⇒ Object
readonly
Returns the value of attribute events.
Instance Method Summary collapse
-
#initialize ⇒ Memory
constructor
A new instance of Memory.
- #instrument(name, payload = {}) ⇒ Object
Constructor Details
#initialize ⇒ Memory
Returns a new instance of Memory.
20 21 22 |
# File 'lib/hubstep/internal/instrumenter/memory.rb', line 20 def initialize @events = [] end |
Instance Attribute Details
#events ⇒ Object (readonly)
Returns the value of attribute events.
24 25 26 |
# File 'lib/hubstep/internal/instrumenter/memory.rb', line 24 def events @events end |