One commonly-recommended method is to use the "time" program, with the --verbose option to include memory
Code: Select all
/usr/bin/time --verbose ./livecode-server somescriptfile.lc
top might seem a good option, but in practice it's useless since even its tightest update frequency is less than the execution time of my scripts.
Any suggestions for something like /usr/bin/time but is actually reliable, something I can attach to the command line call for an accurate measurement of both time and memory?