Determing Heap and stack size of running process.
SHAMANTHA KRISHNA K G
shamanthkrishna23 at gmail.com
Fri Sep 11 13:56:20 UTC 2020
Thank you for the heads up, I had tried the output of procstat -v also
,there also I am not getting any information about heap usage .
Thanks
-Shamantha
On Fri, 11 Sep 2020, 18:59 Ian Lepore, <ian at freebsd.org> wrote:
> On Fri, 2020-09-11 at 16:36 +0530, SHAMANTHA KRISHNA K G wrote:
> > Hello All,
> > I want to know the *size of heap and stack for a running
> > process* ,how
> > it can be done, if I* don't *see any* [stack ] *or* [heap] *in the
> > output
> > of */proc/pid/map* and also the platform does not allow installing
> > *third party
> > freebsd utilities like valgrind.*
> >
> > Thank you,
> > -Shamantha
> >
>
> Use procstat(1). For example "procstat -v <pid>" will show all the
> memory mappings for that process. If you need it from within a program
> you're writing, "man libprocstat" will get you some info on how
> procstat(1) does its work.
>
> -- Ian
>
>
More information about the freebsd-hackers
mailing list