Add struct log logging to HHBBC passes, improve logging output
commitd282e9a8bd6b5816917dc9f47d1e9cb94b60c7ab
authorRick Lavoie <rlavoie@fb.com>
Mon, 22 Aug 2022 16:34:20 +0000 (22 09:34 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 22 Aug 2022 16:34:20 +0000 (22 09:34 -0700)
tree7613992ed7157d16f947be6dc7d36cbc5b033454
parent30134cab51d48f497766112e15ea88da77acffc1
Add struct log logging to HHBBC passes, improve logging output

Summary:
Add infrastructure to log information about all HHBBC passes using a
StructuredLogEntry. Add support for logging using StructuredLogEntry
even when running HHBBC in stand-alone mode, or when HHBBC is
disabled.

Add automatic logging of extern_worker::Client stats to
StructuredLogEntry, as well as in the TRACE output.

Use folly::prettyPrint in a few places to improve the readability of
the log output (and tweak the output format a bit).

Reviewed By: edwinsmith

Differential Revision: D38899993

fbshipit-source-id: 5d02aa72c8f1bcc6e1f9dac017533c9417a4be53
13 files changed:
hphp/compiler/compiler.cpp
hphp/hhbbc/debug.cpp
hphp/hhbbc/hhbbc.h
hphp/hhbbc/index.cpp
hphp/hhbbc/index.h
hphp/hhbbc/main.cpp
hphp/hhbbc/misc.h
hphp/hhbbc/options.cpp
hphp/hhbbc/test/type-system.cpp
hphp/hhbbc/whole-program.cpp
hphp/util/extern-worker-inl.h
hphp/util/extern-worker.cpp
hphp/util/extern-worker.h