Class: Profiler::Result
- Inherits:
-
Object
- Object
- Profiler::Result
- Defined in:
- lib/profiler/result.rb
Instance Attribute Summary collapse
-
#paths_counts ⇒ Object
Returns the value of attribute paths_counts.
-
#paths_durations ⇒ Object
Returns the value of attribute paths_durations.
Instance Method Summary collapse
-
#initialize(profile) ⇒ Result
constructor
A new instance of Result.
- #paths ⇒ Object
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_counts ⇒ Object
Returns the value of attribute paths_counts.
3 4 5 |
# File 'lib/profiler/result.rb', line 3 def paths_counts @paths_counts end |
#paths_durations ⇒ Object
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
#paths ⇒ Object
10 11 12 |
# File 'lib/profiler/result.rb', line 10 def paths self.paths_counts.keys end |