Date: Thu, 18 Mar 2010 21:53:13 -0700 From: Charlie Kester <corky1951@comcast.net> To: freebsd-questions@freebsd.org Subject: Re: API to find the memory usage of a process. Message-ID: <20100319045313.GA29575@comcast.net> In-Reply-To: <4BA2D398.6000104@stormy.smart-serv.net> References: <4cac4bed1003181028h74aff209y31e9c70bfb6ec367@mail.gmail.com> <4BA2D398.6000104@stormy.smart-serv.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu 18 Mar 2010 at 18:30:00 PDT J. Johnston wrote: >On 03/18/10 10:28, Jayadev Kumar wrote: >>Hi, >> >> I need to find the memory usage of a process, from inside the process. >>Is there any system call >>do this ? I was trying to find it from 'top' utility source code. I couldn't >>find the port which it is coming >>from yet. >> >>Thanks, >>Jayadev. > >the source for top is located in /usr/src/usr.bin/top whereis -sq foo will get you the source directory for foo, assuming you installed the system sources, or if "foo" is also the name of the port. If foo was installed by a port with some other name, you can find it with pkg_info -W foo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100319045313.GA29575>