Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,44 @@ on:
jobs:
compile:
name: Compile code
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: '23.3.4.18'
rebar3-version: '3.16.1'
otp-version: '25.3.2.21'
rebar3-version: '3.24.0'
- run: rebar3 compile
test:
name: Run Common Test tests
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
version-type: 'strict'
otp-version: '23.3.4.18'
rebar3-version: '3.16.1'
otp-version: '25.3.2.21'
rebar3-version: '3.24.0'
- run: rebar3 ct
dialyzer:
name: Run Dialyzer
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
version-type: 'strict'
otp-version: '23.3.4.18'
rebar3-version: '3.16.1'
otp-version: '25.3.2.21'
rebar3-version: '3.24.0'
- run: rebar3 dialyzer
lint:
name: Run elvis linting
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
version-type: 'strict'
otp-version: '23.3.4.18'
rebar3-version: '3.16.1'
otp-version: '25.3.2.21'
rebar3-version: '3.24.0'
- run: rebar3 lint
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
erlang 23.2.4
rebar 3.16.1
erlang 25.3.2.21
rebar 3.24.0
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{erl_opts, [debug_info]}.
{project_plugins, [
{rebar3_lint, "2.0.0"},
{rebar3_lint, "3.2.6"},
{rebar3_hex, "7.0.2"}
]}.
{deps, [
Expand Down
2 changes: 2 additions & 0 deletions src/eflambe.erl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

-type capture_return() :: {ok, [any()]} | {error, already_mecked}.

-export_type([mfa_fun/0, options/0, capture_return/0]).

-define(DEFAULT_OPTIONS, [{output_format, brendan_gregg}]).
-define(DEFAULT_APPLY_OPTIONS, [{return, value}|?DEFAULT_OPTIONS]).
-define(DEFAULT_CAPTURE_OPTIONS, [{return, filename}|?DEFAULT_OPTIONS]).
Expand Down
9 changes: 5 additions & 4 deletions src/eflambe_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
timestamp, set_on_spawn]).

-record(state, {
callback :: {pid(), reference()},
callback :: {pid(), gen_server:reply_tag()},
module :: atom(),
max_calls :: integer(),
calls = 0 :: integer(),
Expand All @@ -44,12 +44,13 @@
tracer_pid :: pid()
}).

-type state() :: #state{}.
-type pid_trace() :: #pid_trace{}.
-opaque state() :: #state{}.
-opaque pid_trace() :: #pid_trace{}.
-type from() :: {pid(), Tag :: term()}.

-type tracer_options() :: [eflambe:option() | {pid, pid()} | {max_calls, pos_integer()}].

-export_type([state/0, pid_trace/0, from/0, tracer_options/0]).

%%%===================================================================
%%% API
%%%===================================================================
Expand Down
5 changes: 3 additions & 2 deletions src/eflambe_tracer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@
return :: atom()
}).

-type state() :: #state{}.
-opaque state() :: #state{}.
-type from() :: {pid(), Tag :: term()}.

-type tracer_options() :: [eflambe:option() | {pid, pid()}].

-export_type([state/0, from/0, tracer_options/0]).

%%%===================================================================
%%% API
%%%===================================================================
Expand Down