I was trying to find the heap size my process is using. I did
fgrep '[stack]' /proc/pid/maps
00a00000-45937000 rw-p 00000000 00:00 0 [heap]
Now I wanted to calculate the size of the heap. So I did
(45937000 - 00a00000 ) = 44F37000
converted it to decimal
1156804608. Then to GB =
1156804608/(1000*1000*1000) = 1.1568 GB.
Is what I am doing correct?