added getTotalSharedMem et al.
Merge pull request #1208 from jbe/shared_mem_stats

added getTotalSharedMem et al.