[compiler-rt] [memprof] Add flag to control profile dump at exit (PR #119452)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 10 12:48:48 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 24162bdaf74fcfa5d9494f4059f899980c979ee9 ec382a624af18cb7f0434c24d1c811ca1bde671d --extensions cpp,inc -- compiler-rt/test/memprof/TestCases/dump_at_exit.cpp compiler-rt/lib/memprof/memprof_allocator.cpp compiler-rt/lib/memprof/memprof_flags.inc
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/memprof/memprof_flags.inc b/compiler-rt/lib/memprof/memprof_flags.inc
index 3a40ba0ab5..1d8e77752c 100644
--- a/compiler-rt/lib/memprof/memprof_flags.inc
+++ b/compiler-rt/lib/memprof/memprof_flags.inc
@@ -38,6 +38,7 @@ MEMPROF_FLAG(bool, allocator_frees_and_returns_null_on_realloc_zero, true,
MEMPROF_FLAG(bool, print_text, false,
"If set, prints the heap profile in text format. Else use the raw binary serialization format.")
MEMPROF_FLAG(bool, print_terse, false,
- "If set, prints memory profile in a terse format. Only applicable if print_text = true.")
+ "If set, prints memory profile in a terse format. Only applicable "
+ "if print_text = true.")
MEMPROF_FLAG(bool, dump_at_exit, true,
"If set, dump profiles when the program terminates.")
``````````
</details>
https://github.com/llvm/llvm-project/pull/119452
More information about the llvm-commits
mailing list