Class: Roby::DRoby::Timepoints::Group
- Defined in:
- lib/roby/droby/timepoints.rb
Instance Attribute Summary collapse
-
#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
- #end_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.
172 173 174 175 176 177 178 179 180 181 |
# File 'lib/roby/droby/timepoints.rb', line 172 def initialize(time, name, group) super() @name = name @group = group @level = group.level + 1 @current_time = time @start_time = time end |
Instance Attribute Details
#group ⇒ Object (readonly)
Returns the value of attribute group.
170 171 172 |
# File 'lib/roby/droby/timepoints.rb', line 170 def group @group end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
170 171 172 |
# File 'lib/roby/droby/timepoints.rb', line 170 def level @level end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
170 171 172 |
# File 'lib/roby/droby/timepoints.rb', line 170 def name @name end |
#start_time ⇒ Object (readonly)
Returns the value of attribute start_time.
170 171 172 |
# File 'lib/roby/droby/timepoints.rb', line 170 def start_time @start_time end |
Instance Method Details
#close(time) ⇒ Object
191 192 193 |
# File 'lib/roby/droby/timepoints.rb', line 191 def close(time) @current_time = time end |
#end_time ⇒ Object
187 188 189 |
# File 'lib/roby/droby/timepoints.rb', line 187 def end_time current_time end |
#path ⇒ Object
183 184 185 |
# File 'lib/roby/droby/timepoints.rb', line 183 def path @path ||= (group.path + [name]) end |