
Memory profiler is a memory profiling routines for Ruby 2.3+. It requires Ruby(MRI) version 2.3.8 and above.
One can use the .start/.stop API as well but it can only be run once per report, and .stop will be the only time you can retrieve the report using this API.