Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrate with travis. remove all the gtk stuff.
make travis use latest vsns of erlang 15, 16, 17, and 18. move sherk et al to its own repo.
- Loading branch information
1 parent
fec69b7
commit 436919d
Showing
28 changed files
with
58 additions
and
3,974 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
language: erlang | ||
|
||
notifications: | ||
email: false | ||
|
||
otp_release: | ||
- 18.0 | ||
- 17.5 | ||
- R16B03-1 | ||
- R15B03 | ||
|
||
script: | ||
make test | ||
|
||
sudo: false |
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,8 @@ | ||
[![Build Status](https://travis-ci.org/massemanet/eper.svg?branch=master)](https://travis-ci.org/massemanet/eper) | ||
|
||
eper is a loose collection of Erlang Performance related tools. | ||
|
||
* dtop - similar to unix top | ||
* ntop - visualizes network traffic | ||
* atop - shows various aspects of the VM allocators | ||
* redbug - similar to the OTP dbg application, but safer, better etc. |
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,4 +1,4 @@ | ||
bindir = $(ERLANG_INSTALL_LIB_DIR_eper)/priv/bin | ||
dist_bin_SCRIPTS = dtop gperf ntop redbug sherk | ||
dist_bin_SCRIPTS = dtop ntop redbug | ||
|
||
EXTRA_DIST = $(dist_bin_SCRIPTS) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,7 +1,6 @@ | ||
%-*- mode: erlang; erlang-indent-level: 2 -*- | ||
{erl_opts, [debug_info, warnings_as_errors]}. | ||
{xref_checks, [undefined_function_calls]}. | ||
{xref_extra_paths, ["../gtknode/src"]}. | ||
{cover_enabled, true}. | ||
{cover_print_enabled, true}. | ||
{escript_name, "priv/bin/eper"}. |
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,17 +1,34 @@ | ||
%% -*- mode: erlang;erlang-indent-level: 2;indent-tabs-mode: nil -*- | ||
%% vim: set ft=erlang ts=2 sw=2: | ||
|
||
KeyAppend = fun(Tag,[],E,_) ->[{Tag,[E]}]; | ||
(Tag,[{Tag,O}|T],E,_)->[{Tag,[E|O]}|T]; | ||
(Tag,[H|T],E,G) ->[H|G(Tag,T,E,G)] | ||
end, | ||
code:ensure_loaded(crypto), | ||
CONFIG2 = case erlang:function_exported(crypto,block_encrypt,3) of | ||
true -> KeyAppend(erl_opts,CONFIG,{d,'CRYPTO_R16'},KeyAppend); | ||
false -> CONFIG | ||
end. | ||
%% this code is not particularly nice. | ||
%% the idea is to test for the presence of functions, in order to set | ||
%% preprocessor flags, so that we can use the preprocessor to hide new | ||
%% functions from old compilers. | ||
%% "erl_opts" gets passed to the compiler. | ||
%% "CONFIG" is a magic rebar thing. | ||
|
||
case erlang:is_builtin(erlang,timestamp,0) of | ||
true -> KeyAppend(erl_opts,CONFIG2,{d,'HAS_TIMESTAMP'},KeyAppend); | ||
false -> CONFIG2 | ||
end. | ||
KeyAppend = | ||
fun(Tag,[],E,_) -> [{Tag,[E]}]; | ||
(Tag,[{Tag,O}|T],E,_) -> [{Tag,[E|O]}|T]; | ||
(Tag,[H|T],E,G) -> [H|G(Tag,T,E,G)] | ||
end, | ||
|
||
Crypto = | ||
fun(CFG) -> | ||
code:ensure_loaded(crypto), | ||
case erlang:function_exported(crypto,block_encrypt,3) of | ||
true -> KeyAppend(erl_opts,CFG,{d,'CRYPTO_R16'},KeyAppend); | ||
false -> CFG | ||
end | ||
end, | ||
|
||
Timestamp = | ||
fun(CFG) -> | ||
case erlang:is_builtin(erlang,timestamp,0) of | ||
true -> KeyAppend(erl_opts,CFG,{d,'HAS_TIMESTAMP'},KeyAppend); | ||
false -> CFG | ||
end | ||
end, | ||
|
||
lists:foldl(fun(F,Cfg) -> F(Cfg) end,CONFIG,[Crypto,Timestamp]). |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.