File 0391-Use-tprof-session-name-in-trace-session_create.patch of Package erlang
From 77f0ff42c16b544239082a6da8a458a65ea0b12c Mon Sep 17 00:00:00 2001
From: ruslandoga <ruslandoga+gh@icloud.com>
Date: Wed, 26 Mar 2025 19:21:14 +0300
Subject: [PATCH 1/5] Use `tprof` `session` name in `trace:session_create`
---
lib/tools/src/tprof.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/tools/src/tprof.erl b/lib/tools/src/tprof.erl
index 8e2b20cfbf..6c4b7a8969 100644
--- a/lib/tools/src/tprof.erl
+++ b/lib/tools/src/tprof.erl
@@ -941,7 +941,7 @@ profile(Module, Function, Args, Options) when is_atom(Module), is_atom(Function)
init(Config) ->
Type = maps:get(type, Config, call_count),
false = erlang:process_flag(trap_exit, true), %% need this for reliable terminate/2 call
- Session = trace:session_create(maps:get(session_name, Config, ?MODULE), self(), []),
+ Session = trace:session_create(maps:get(session, Config, ?MODULE), self(), []),
{ok, #tprof_state{session = Session, type = Type}}.
-doc false.
--
2.43.0