Add detailed module logging to memory profiler.

This provides sufficient information in the trace file for symbolizing stack traces that are output by the profiler.

BUG=
R=sebmarchand@chromium.org

Review URL: https://codereview.appspot.com/172420043