[fpc-pascal] Measure used memory of a process using TProcess.
Kiên Nguyễn Tiến Trung
kc97ble at gmail.com
Fri Apr 24 06:40:57 CEST 2015
2015-04-22 14:34 GMT+07:00 Michael Van Canneyt <michael at freepascal.org>:
> On Tue, 21 Apr 2015, Kiên Nguyễn Tiến Trung wrote:
> I want to execute a command using TProcess and get the amount of memory
>> used by the command. Is it possible? I'm finding a solution working on both
>> Linux and Windows.
> I have no knowledge of pascal code that accomplishes this.
> Under Linux you can probably try to read /proc/$PID/status, the various
> memory parameters start with 'Vm'
> Obviously this only works while the process is running.
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal