class Flows::Plugin::Profiler::Report::Tree::Node

@api private

Attributes

executions[R]
subject[R]

Public Class Methods

new(subject:) click to toggle source
# File lib/flows/plugin/profiler/report/tree/node.rb, line 10
def initialize(subject:)
  @subject = subject
  @children = {}
  @cache = {}

  @executions = []
end

Public Instance Methods

[](subject) click to toggle source
# File lib/flows/plugin/profiler/report/tree/node.rb, line 18
def [](subject)
  @children[subject] ||= Node.new(subject: subject)
end
children() click to toggle source
# File lib/flows/plugin/profiler/report/tree/node.rb, line 22
def children
  @children.values
end
register_execution(microseconds) click to toggle source
# File lib/flows/plugin/profiler/report/tree/node.rb, line 26
def register_execution(microseconds)
  @executions << microseconds
end