SisMaker 4 роки тому
джерело
коміт
7a1cbd5629
2 змінених файлів з 3 додано та 3 видалено
  1. +1
    -1
      include/eTpf.hrl
  2. +2
    -2
      src/eTpf.erl

+ 1
- 1
include/eTpf.hrl Переглянути файл

@ -13,7 +13,7 @@
, tcmNestStruct => 6 , tcmNestStruct => 6
}). }).
-define(defPoolId, defPoolId).
-define(eTpfPoolId, eTpfPoolId).
%% %%
-export_type([input/0, userInput/0, traceOpts/0, tracerOpts/0]). -export_type([input/0, userInput/0, traceOpts/0, tracerOpts/0]).

+ 2
- 2
src/eTpf.erl Переглянути файл

@ -34,7 +34,7 @@ do_trace(InputList, TracerMod, TracerOpts, TraceOpts) ->
_ = application:ensure_all_started(eTpf), _ = application:ensure_all_started(eTpf),
%% Start the pool of tracer processes. %% Start the pool of tracer processes.
PoolID = maps:get(poolId, TraceOpts, ?defPoolId),
PoolID = maps:get(poolId, TraceOpts, ?eTpfPoolId),
PoolSize = maps:get(poolSize, TraceOpts, erlang:system_info(schedulers)), PoolSize = maps:get(poolSize, TraceOpts, erlang:system_info(schedulers)),
true = PoolSize > 0, true = PoolSize > 0,
{ok, PoolPid} = supervisor:start_child(eTpf_sup, #{ {ok, PoolPid} = supervisor:start_child(eTpf_sup, #{
@ -110,7 +110,7 @@ traceInput([Mod | Tail], TracerState, Opts) when is_atom(Mod) ->
traceInput(Tail, TracerState, Opts). traceInput(Tail, TracerState, Opts).
stop() -> stop() ->
stop(?defPoolId).
stop(?eTpfPoolId).
%% @todo Confirm that we don't need to stop tracing, %% @todo Confirm that we don't need to stop tracing,
%% that just terminating the tracers is enough. The %% that just terminating the tracers is enough. The

Завантаження…
Відмінити
Зберегти