Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
kjnilsson committed May 18, 2023
1 parent ca9355f commit 9f0c8b1
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions test/ra_2_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -792,23 +792,3 @@ data_dir() ->
force_roll_over() ->
#{names := #{wal := Wal}} = ra_system:fetch(?SYS),
ra_log_wal:force_roll_over(Wal).

start_profile(Config, Modules) ->
Dir = ?config(priv_dir, Config),
Case = ?config(test_case, Config),
GzFile = filename:join([Dir, "lg_" ++ atom_to_list(Case) ++ ".gz"]),
ct:pal("Profiling to ~p", [GzFile]),

lg:trace(Modules, lg_file_tracer,
GzFile, #{running => false, mode => profile}).

stop_profile(Config) ->
Case = ?config(test_case, Config),
ct:pal("Stopping profiling for ~p", [Case]),
lg:stop(),
% this segfaults
Dir = ?config(priv_dir, Config),
Name = filename:join([Dir, "lg_" ++ atom_to_list(Case)]),
lg_callgrind:profile_many(Name ++ ".gz.*", Name ++ ".out",#{}),
ok.

0 comments on commit 9f0c8b1

Please sign in to comment.