aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2022-11-16 18:07:07 -0800
committerTeresa Johnson <tejohnson@google.com>2022-11-18 15:09:02 -0800
commitea1826ee57984d4f44fdb4b35a47169d393618ed (patch)
treeca65c7c875f135f1c7504523601487f62fee1e15 /lldb/source/Plugins/ScriptInterpreter/Python
parentaf029d383a24ee454e1124f64f3427d5b79e5f7e (diff)
downloadllvm-ea1826ee57984d4f44fdb4b35a47169d393618ed.zip
llvm-ea1826ee57984d4f44fdb4b35a47169d393618ed.tar.gz
llvm-ea1826ee57984d4f44fdb4b35a47169d393618ed.tar.bz2
[MemProf] Defer profile file setup until dump time
With all of the writing of the memprof profile consolidated into one place, there is no need to set up the profile file (which creates the file and also redirects all printing from the runtime to it) until we are ready to dump the profile. This allows errors and other messages to be dumped to stderr instead of the profile file, which by default is in a binary format. Additionally, reset the output file to stderr after dumping the profile so that any requested memprof allocator statistics are printed to stderr. Differential Revision: https://reviews.llvm.org/D138175
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions