[clang-tools-extra] [compiler-rt] [lldb] [llvm] [Memprof] Adds the option to collect AccessCountHistograms for memprof. (PR #94264)

Matthew Weingarten via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 7 18:13:05 PDT 2024


================
@@ -140,12 +140,16 @@ static cl::opt<int> ClDebugMin("memprof-debug-min", cl::desc("Debug min inst"),
 static cl::opt<int> ClDebugMax("memprof-debug-max", cl::desc("Debug max inst"),
                                cl::Hidden, cl::init(-1));
 
+static cl::opt<bool> ClHistogram("memprof-histogram",
----------------
mattweingarten wrote:

Use global variable `__memprof_histogram` in IR to set flag in runtime, and got rid of runtime flag. 

https://github.com/llvm/llvm-project/pull/94264


More information about the cfe-commits mailing list