add REST API for memory (heap) profiling