sytemmonitor

hello,
i want to know how memory size used by a process with a give PID(process ID)
ist there any system call that deals with this
thank´s