Make it possible to serialize memprof timestamps.

This allows for an absolute ordering of function calls across various threads.

BUG=
R=sebmarchand@chromium.org

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