windows - Determining maximum memory use of a process -


i want run command and, when it's complete, have record of maximum memory use of resulting process. instance, want analogous 'time' command on linux, 'time foo' run 'foo' and, when 'foo' exits, print out amount of cpu time 'foo' took.

for present application need run on windows, if know of linux-only program let me know too. (at least it'd interesting, may give me lead find windows equivalent.)

i don't know of program this, there apis.

if you're using .net, use process.totalprocessortime property.

if you're using native code, use getprocesstimes() function.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -