Add empty memory profiler

Please find the previous pull request merged into a single commit.

I compared the memory consumption before/after the commit using a short AliRoot pp reconstruction job that uses ~1.6G of memory.  In this benchmark, the memory consumption differs in the range of only a few megabyte.  Please let me know if you need more extensive tests.