refactor: 🧪 add debug output of how long the search took
TODO: Revert me!
This commit is contained in:
parent
af5993681d
commit
ba44b00943
1 changed files with 6 additions and 1 deletions
|
@ -89,8 +89,13 @@ module Comfpile
|
||||||
end
|
end
|
||||||
|
|
||||||
def processing_stack_find_next()
|
def processing_stack_find_next()
|
||||||
|
i = 0
|
||||||
@processing_stack.reverse_each do |a|
|
@processing_stack.reverse_each do |a|
|
||||||
return a if a.waiting?
|
i += 1
|
||||||
|
if a.waiting?
|
||||||
|
puts "DBG - Found item after #{i} checks"
|
||||||
|
return a
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
nil
|
nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue