Class: Vivarium::TreeRenderer::Span
- Inherits:
-
Struct
- Object
- Struct
- Vivarium::TreeRenderer::Span
- Defined in:
- lib/vivarium/tree_renderer.rb
Instance Attribute Summary collapse
-
#descendant_pids ⇒ Object
Returns the value of attribute descendant_pids.
-
#events ⇒ Object
Returns the value of attribute events.
-
#exit_kind ⇒ Object
Returns the value of attribute exit_kind.
-
#file_id ⇒ Object
Returns the value of attribute file_id.
-
#lineno ⇒ Object
Returns the value of attribute lineno.
-
#method_id ⇒ Object
Returns the value of attribute method_id.
-
#raised ⇒ Object
Returns the value of attribute raised.
-
#start_ktime ⇒ Object
Returns the value of attribute start_ktime.
-
#stop_ktime ⇒ Object
Returns the value of attribute stop_ktime.
-
#synthetic ⇒ Object
Returns the value of attribute synthetic.
-
#tid ⇒ Object
Returns the value of attribute tid.
Instance Method Summary collapse
- #duration_ns ⇒ Object
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Object
Span is mutable (stop_ktime, events, descendant_pids are written after creation).
Instance Attribute Details
#descendant_pids ⇒ Object
Returns the value of attribute descendant_pids
25 26 27 |
# File 'lib/vivarium/tree_renderer.rb', line 25 def descendant_pids @descendant_pids end |
#events ⇒ Object
Returns the value of attribute events
25 26 27 |
# File 'lib/vivarium/tree_renderer.rb', line 25 def events @events end |
#exit_kind ⇒ Object
Returns the value of attribute exit_kind
25 26 27 |
# File 'lib/vivarium/tree_renderer.rb', line 25 def exit_kind @exit_kind end |
#file_id ⇒ Object
Returns the value of attribute file_id
25 26 27 |
# File 'lib/vivarium/tree_renderer.rb', line 25 def file_id @file_id end |
#lineno ⇒ Object
Returns the value of attribute lineno
25 26 27 |
# File 'lib/vivarium/tree_renderer.rb', line 25 def lineno @lineno end |
#method_id ⇒ Object
Returns the value of attribute method_id
25 26 27 |
# File 'lib/vivarium/tree_renderer.rb', line 25 def method_id @method_id end |
#raised ⇒ Object
Returns the value of attribute raised
25 26 27 |
# File 'lib/vivarium/tree_renderer.rb', line 25 def raised @raised end |
#start_ktime ⇒ Object
Returns the value of attribute start_ktime
25 26 27 |
# File 'lib/vivarium/tree_renderer.rb', line 25 def start_ktime @start_ktime end |
#stop_ktime ⇒ Object
Returns the value of attribute stop_ktime
25 26 27 |
# File 'lib/vivarium/tree_renderer.rb', line 25 def stop_ktime @stop_ktime end |
#synthetic ⇒ Object
Returns the value of attribute synthetic
25 26 27 |
# File 'lib/vivarium/tree_renderer.rb', line 25 def synthetic @synthetic end |
#tid ⇒ Object
Returns the value of attribute tid
25 26 27 |
# File 'lib/vivarium/tree_renderer.rb', line 25 def tid @tid end |
Instance Method Details
#duration_ns ⇒ Object
30 31 32 33 34 |
# File 'lib/vivarium/tree_renderer.rb', line 30 def duration_ns return nil unless stop_ktime && start_ktime stop_ktime - start_ktime end |
#eql?(other) ⇒ Boolean
42 43 44 |
# File 'lib/vivarium/tree_renderer.rb', line 42 def eql?(other) equal?(other) end |
#hash ⇒ Object
Span is mutable (stop_ktime, events, descendant_pids are written after creation). Use object identity for Hash/Set so keys remain stable across mutations.
38 39 40 |
# File 'lib/vivarium/tree_renderer.rb', line 38 def hash object_id end |