Skip to content

Commit

Permalink
Turn off the option {debug,[statistics]} at startup gen_server
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfAfg committed Feb 28, 2024
1 parent 299a5c8 commit f9104d9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/supervisor_specs_constructor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ make_name() ->
-spec create_child_spec(supervision_tree:child(), sup_names()) -> supervisor:child_spec().
create_child_spec(Name, _) when is_atom(Name) ->
#{id => Name,
start =>
% TODO: Give the debug information only when running the benchmark to measure the time to restart gen_servers
{gen_server, start_link, [{local, Name}, Name, [], [{debug, [statistics]}]]},
start => {gen_server, start_link, [{local, Name}, Name, [], []]},
type => worker};
create_child_spec(Child, Names) ->
Name = maps:get(Child, Names),
Expand Down

0 comments on commit f9104d9

Please sign in to comment.