Monitor zombie process and insert result with a timestamp in a log file
while true; do ps axo pid=,stat= | awk '$2~/^Z/ { print }' | wc -l | ruby -pe 'print Time.now.strftime("[%T.%3N] ")' >> /tmp/ruby_bisect_zombie_process.log; sleep 0.1; done
Run the test with log inserted:
def function_logger(words)