Class: Profiler::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/profiler/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(profile) ⇒ Result

Returns a new instance of Result.



5
6
7
8
# File 'lib/profiler/result.rb', line 5

def initialize(profile)
  self.paths_counts = profile.paths_counts.dup
  self.paths_durations = profile.paths_durations.dup
end

Instance Attribute Details

#paths_countsObject

Returns the value of attribute paths_counts.



3
4
5
# File 'lib/profiler/result.rb', line 3

def paths_counts
  @paths_counts
end

#paths_durationsObject

Returns the value of attribute paths_durations.



3
4
5
# File 'lib/profiler/result.rb', line 3

def paths_durations
  @paths_durations
end

Instance Method Details

#pathsObject



10
11
12
# File 'lib/profiler/result.rb', line 10

def paths
  self.paths_counts.keys
end