You can get some information from these functions that give you the current state of the allocated memory and the caching allocator and the max usage: max_memory_allocated 112, max_memory_cached 25, memory_allocated 69 and memory_cached 28.
Or did you wanted more precise profiling?