Command to check memory size

Hi,

I am looking for acoomand on HP where by i can see the CPU increasing for a given process ... I know i can see this from top/prstat ..

But it will give for all the processes - I want something like say ps where i can call it from a shell script a few times and check if it is has increased or not!

Anyone know the command i can use on Solaris ...?????????????????????

Thanks