This can be useful to help correlate at which point memory usage bursts with stdout. myprog: don't hide program stdout/stderr. If your program finishes, the loop stops and we exit topp.Īlternatively, if you git Ctrl + C, the program also stops due to the trap: How do I kill background processes / jobs when my shell script exits? Where vsz is the total memory usage in KiB, e.g. This form is useful if you want to benchmark an executable easily: topp() (
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |