[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


Thank you.

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.
>
> Michael.
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150424/0590387e/attachment.html>


More information about the fpc-pascal mailing list