-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from gomoripeti/hist
Address hdr_histogram issues
- Loading branch information
Showing
14 changed files
with
876 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
{deps, | ||
[{customized_hdr_histogram, "0.3.2"}, | ||
[{hdr_histogram, "0.3.2"}, | ||
{lager, "3.2.4"} | ||
]}. | ||
|
||
{erl_opts, [debug_info, | ||
{parse_transform, lager_transform}, | ||
{platform_define, "^((1[8|9])|2)", rand_module}]}. | ||
{platform_define, "^(R|17|18)", before_OTP_19}, | ||
{platform_define, "^((1[8|9])|2)", rand_module}, | ||
{platform_define, "^[^R1]", ceil_floor} | ||
]}. |
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,12 @@ | ||
case os:getenv("XPROF_ERL_HIST") of | ||
false -> | ||
CONFIG; | ||
_ -> | ||
ErlOpts = proplists:get_value(erl_opts, CONFIG, []), | ||
NewErlOpts = {erl_opts, [{d, 'XPROF_ERL_HIST'}|ErlOpts]}, | ||
Config2 = lists:keystore(erl_opts, 1, CONFIG, NewErlOpts), | ||
|
||
Deps = proplists:get_value(deps, CONFIG, []), | ||
NewDeps = {deps, lists:keydelete(hdr_histogram, 1, Deps)}, | ||
lists:keystore(deps, 1, Config2, NewDeps) | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
,stdlib | ||
,compiler | ||
,lager | ||
,customized_hdr_histogram | ||
,hdr_histogram | ||
]} | ||
,{env,[]} | ||
,{modules, []} | ||
|
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
Oops, something went wrong.