https://github.com/brentthorne/posterdown
https://github.com/rstudio/pagedown
https://github.com/GerkeLab/betterposter
| # This function will periodically print cpu information about the given process name | |
| # Place it in your .zshrc or equivalent file or modify it to run via #!/bin/zsh | |
| # | |
| # Usage: monitor_cpu mediaanalysisd 28800 5 > ~/Desktop/cpu_log.txt | |
| # Monitors processes containing "mediaanalysisd" for 12 hours reporting every 5 seconds | |
| # | |
| # Run this to output statistics: | |
| # cat ~/Desktop/cpu_log.txt | grep "mediaanalysisd " | grep -v "0.0" | awk '{sum += $NF; count++} END {if (count > 0) {print sum / count; print count;} else print "No data"}' | |
| function monitor_cpu() { |