A way to determine a process’s “real” memory usage, i.e. private dirty RSS?

On OSX the Activity Monitor gives you actually a very good guess. Private memory is for sure memory that is only used by your application. E.g. stack memory and all memory dynamically reserved using malloc() and comparable functions/methods (alloc method for Objective-C) is private memory. If you fork, private memory will be shared with you … Read more

Command to get time in milliseconds

date +”%T.%N” returns the current time with nanoseconds. 06:46:41.431857000 date +”%T.%6N” returns the current time with nanoseconds rounded to the first 6 digits, which is microseconds. 06:47:07.183172 date +”%T.%3N” returns the current time with nanoseconds rounded to the first 3 digits, which is milliseconds. 06:47:42.773 In general, every field of the date command’s format can … Read more