# File lib/celluloid/stack_dump.rb, line 123 def print(output = STDERR) @actors.each do |actor| output.print actor.dump end @threads.each do |thread| output.print thread.dump end end
# File lib/celluloid/stack_dump.rb, line 81 def snapshot @internal_pool.each do |thread| if thread.role == :actor @actors << snapshot_actor(thread.actor) if thread.actor else @threads << snapshot_thread(thread) end end end
# File lib/celluloid/stack_dump.rb, line 91 def snapshot_actor(actor) state = ActorState.new state.id = actor.object_id # TODO: delegate to the behavior if actor.behavior.is_a?(Cell) state.cell = snapshot_cell(actor.behavior) end tasks = actor.tasks if tasks.empty? state.status = :idle else state.status = :running state.tasks = tasks.to_a.map { |t| TaskState.new(t.class, t.type, t.meta, t.status, t.backtrace) } end state.backtrace = actor.thread.backtrace if actor.thread state end
Generated with the Darkfish Rdoc Generator 2.