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

Matthew Weingarten via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 4 14:52:28 PDT 2024


================
@@ -34,6 +34,8 @@
 #include <sched.h>
 #include <time.h>
 
+#define MAX_HISTOGRAM_PRINT_SIZE 32U
----------------
mattweingarten wrote:

Not if we want accurate field access counts, especially inside of containers. The MAX_HISTOGRAM_PRINT_SIZE is just for ease of debugging, as there is always a really large allocated block when running profiled binary with `env MEMPROF_OPTIONS=print_text=true:log_path=stdout:histogram=true`, which floods the screen with not so useful information

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


More information about the llvm-commits mailing list