Add StackTrace logging to Memory Profiler.

A further CL will add module logging so as to be able to symbolize stack traces in the trace file.

BUG=
R=sebmarchand@chromium.org

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