Add ring logging for interesting debugging events
commita605a5c6992472d11e3c69f163267a1fcd166ca2
authorMike Magruder <mikemag@fb.com>
Wed, 15 May 2013 20:03:37 +0000 (15 13:03 -0700)
committerSara Golemon <sgolemon@fb.com>
Mon, 20 May 2013 20:52:28 +0000 (20 13:52 -0700)
tree0016fd2986ae2f019352eebd1ea25fdcefbde0e4
parentcd1888f738eaa8546fe72d19c837a67549061320
Add ring logging for interesting debugging events

This adds a new trace macro to allow tracing to the ring buffer in release builds. It also performs normal tracing, too, like TRACE(n, ...). Converted a number of trace/log messages in the debugger to the new macro so we have this data when we get a core file. I've converted things that we've found useful lately, but this will be adjusted over time quite a lot as we discover new things that help us find problems more quickly, or find messages that turn our to be useless or spammy.
hphp/runtime/eval/debugger/debugger.cpp
hphp/runtime/eval/debugger/debugger_proxy.cpp
hphp/runtime/ext/ext_apc.cpp
hphp/runtime/ext/ext_fb.cpp
hphp/runtime/vm/bytecode.cpp
hphp/runtime/vm/debugger_hook.cpp
hphp/runtime/vm/debugger_hook.h
hphp/util/ringbuffer.cpp
hphp/util/trace.cpp
hphp/util/trace.h
hphp/util/util.h