Class: Roby::DRoby::Timepoints::Group
- Defined in:
- lib/roby/droby/timepoints.rb
Instance Attribute Summary collapse
-
#end_time ⇒ Object
readonly
Returns the value of attribute end_time.
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
Attributes inherited from Aggregate
Instance Method Summary collapse
- #close(time) ⇒ Object
-
#initialize(time, name, group) ⇒ Group
constructor
A new instance of Group.
- #path ⇒ Object
Methods inherited from Aggregate
#add, #duration, #flamegraph, #format, #group_end, #group_start
Constructor Details
#initialize(time, name, group) ⇒ Group
Returns a new instance of Group.
179 180 181 182 183 184 185 186 187 188 |
# File 'lib/roby/droby/timepoints.rb', line 179 def initialize(time, name, group) super() @name = name @group = group @level = group.level + 1 @current_time = time @start_time = time end |
Instance Attribute Details
#end_time ⇒ Object (readonly)
Returns the value of attribute end_time.
177 178 179 |
# File 'lib/roby/droby/timepoints.rb', line 177 def end_time @end_time end |
#group ⇒ Object (readonly)
Returns the value of attribute group.
174 175 176 |
# File 'lib/roby/droby/timepoints.rb', line 174 def group @group end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
173 174 175 |
# File 'lib/roby/droby/timepoints.rb', line 173 def level @level end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
172 173 174 |
# File 'lib/roby/droby/timepoints.rb', line 172 def name @name end |
#start_time ⇒ Object (readonly)
Returns the value of attribute start_time.
176 177 178 |
# File 'lib/roby/droby/timepoints.rb', line 176 def start_time @start_time end |