File 7392-Fix-tprof-example-docs.patch of Package erlang
From 7f6744e8749b9ea236b0f51e3fb86baf62f4510a Mon Sep 17 00:00:00 2001
From: Michal Kuratczyk <mkuratczyk@vmware.com>
Date: Fri, 16 Feb 2024 15:17:52 +0100
Subject: [PATCH] Fix tprof example (docs)
The correct column name is `measurement`
---
lib/tools/src/tprof.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/tools/doc/src/tprof.xml b/lib/tools/doc/src/tprof.xml
index 8fee157ee1..989184a1a0 100644
--- a/lib/tools/doc/src/tprof.xml
+++ b/lib/tools/doc/src/tprof.xml
@@ -175,7 +175,7 @@
all processes, sorted by total allocated words in the descending order</p>
<code type="none"><![CDATA[
5> tprof:profile(test, test_spawn, [],
- #{type => call_memory, report => {total, {words, descending}}}).
+ #{type => call_memory, report => {total, {measurement, descending}}}).
FUNCTION CALLS WORDS PER CALL [ %]
lists:seq_loop/3 9 64 7 [68.82]
--
2.35.3