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

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

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -