瀏覽代碼

ft: 代码修改

master
SisMaker 3 年之前
父節點
當前提交
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
}).
-define(defPoolId, defPoolId).
-define(eTpfPoolId, eTpfPoolId).
%%
-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),
%% 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)),
true = PoolSize > 0,
{ok, PoolPid} = supervisor:start_child(eTpf_sup, #{
@ -110,7 +110,7 @@ traceInput([Mod | Tail], TracerState, Opts) when is_atom(Mod) ->
traceInput(Tail, TracerState, Opts).
stop() ->
stop(?defPoolId).
stop(?eTpfPoolId).
%% @todo Confirm that we don't need to stop tracing,
%% that just terminating the tracers is enough. The

Loading…
取消
儲存