-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(cleanup and modify): use tracers
Use compilation tracer. Configure test trace static mod. Update tests
- Loading branch information
1 parent
2a17d00
commit 6924a9b
Showing
6 changed files
with
103 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
defmodule ExFactor.Traces do | ||
def setup do | ||
Code.compiler_options(parser_options: [columns: true]) | ||
ExFactor.Tracer = Code.ensure_loaded!(ExFactor.Tracer) | ||
ExFactor.Server = Code.ensure_loaded!(ExFactor.Server) | ||
|
||
_ = ExFactor.Server.start_link(__MODULE__) | ||
end | ||
|
||
def trace do | ||
:ok = Application.ensure_loaded(:ex_factor) | ||
setup() | ||
Mix.Task.rerun("compile", ["--force", "--tracer=ExFactor.Tracer"]) | ||
|
||
ExFactor.Server.entries | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters