Loading...
--- libmalloc/libmalloc-116/man/malloc.3
+++ libmalloc/libmalloc-140.50.6/man/malloc.3
@@ -200,9 +200,21 @@
.Ev MallocGuardEdges
environment variable is set.
.It Ev MallocStackLogging
-If set, record all stacks, so that tools like
-.Nm leaks
+The default behavior if this is set is to record all allocation and deallocation events to an on-disk log, along with stacks, so that tools like
+.Xr leaks 1
+and
+.Xr malloc_history 1
can be used.
+.Pp
+Set to "vm" to record only allocation of virtual memory regions allocated by system calls and mach traps, such as by
+.Xr mmap 1
+.
+.Pp
+Set to "malloc" to record only allocations via
+.Xr malloc 3
+and related interfaces, not virtual memory regions.
+.Pp
+Set to "lite" to record current allocations only, not history. These are recorded by in-memory data structures, instead of an on-disk log.
.It Ev MallocStackLoggingNoCompact
If set, record all stacks in a manner that is compatible with the
.Nm malloc_history