diff options
| author | Snehasish Kumar <snehasishk@google.com> | 2023-03-07 23:38:51 +0000 |
|---|---|---|
| committer | Snehasish Kumar <snehasishk@google.com> | 2023-03-08 18:02:23 +0000 |
| commit | 79ebb6385b3afe2b78a6923b3bbddadb791b7840 (patch) | |
| tree | 630b30577a180bc099bce5e8a92f0f42ab50c1b6 /lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp | |
| parent | 4d94a0080e1490513bde3da4302c7cb729246ddb (diff) | |
[memprof] Simplify initialized flags.
As discussed in D145428, the memprof_init_is_running check can be moved
to the end of the initialization routine to avoid intercepting
allocations during initialization. Also, the memprof_init_done flag can
be removed and replaced with memprof_inited. Finally, memprof_inited can
also be moved to the end of the method.
Tested on the existing check-memprof tests; memprof profile collection
succeeded on a large internal workload.
Reviewed By: tejohnson
Differential Revision: https://reviews.llvm.org/D145528
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp')
0 files changed, 0 insertions, 0 deletions
