From: Siraaj Khandkar Date: Thu, 28 Jan 2016 20:31:21 +0000 (-0500) Subject: Update alignments. X-Git-Tag: 1.0.1~1 X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=39ff67a62324705869d1ee364e98b17d14e70438;p=beam_stats.git Update alignments. --- diff --git a/include/beam_stats.hrl b/include/beam_stats.hrl index aaaf107..25f9281 100644 --- a/include/beam_stats.hrl +++ b/include/beam_stats.hrl @@ -1,9 +1,9 @@ -record(beam_stats, - { timestamp :: erlang:timestamp() - , node_id :: atom() - , memory :: [{atom(), non_neg_integer()}] - , io_bytes_in :: non_neg_integer() - , io_bytes_out :: non_neg_integer() + { timestamp :: erlang:timestamp() + , node_id :: atom() + , memory :: [{atom(), non_neg_integer()}] + , io_bytes_in :: non_neg_integer() + , io_bytes_out :: non_neg_integer() , context_switches :: non_neg_integer() , reductions :: non_neg_integer() , run_queue :: non_neg_integer() diff --git a/src/beam_stats_consumer_graphite.erl b/src/beam_stats_consumer_graphite.erl index 4eb7821..fc43757 100644 --- a/src/beam_stats_consumer_graphite.erl +++ b/src/beam_stats_consumer_graphite.erl @@ -32,9 +32,9 @@ -type state() :: #state{}. --define(DEFAULT_HOST , "localhost"). --define(DEFAULT_PORT , 2003). --define(DEFAULT_TIMEOUT , 5000). +-define(DEFAULT_HOST , "localhost"). +-define(DEFAULT_PORT , 2003). +-define(DEFAULT_TIMEOUT , 5000). -spec init([option()]) -> {non_neg_integer(), state()}. diff --git a/src/beam_stats_delta.erl b/src/beam_stats_delta.erl index 1e3bdfb..fae6c63 100644 --- a/src/beam_stats_delta.erl +++ b/src/beam_stats_delta.erl @@ -32,7 +32,8 @@ start() -> , public ], ?T - { erlang_statistics = ets:new(beam_stats_delta_erlang_statistics, Options) + { erlang_statistics = + ets:new(beam_stats_delta_erlang_statistics, Options) , erlang_process_info_reductions = ets:new(beam_stats_delta_erlang_process_info_reductions, Options) }. @@ -40,7 +41,7 @@ start() -> -spec stop(t()) -> {}. stop(?T - { erlang_statistics = TidErlangStatistics + { erlang_statistics = TidErlangStatistics , erlang_process_info_reductions = TidErlangProcessInfoReductions } ) -> diff --git a/src/beam_stats_process.erl b/src/beam_stats_process.erl index 3f2c9a4..5dc64d7 100644 --- a/src/beam_stats_process.erl +++ b/src/beam_stats_process.erl @@ -79,9 +79,9 @@ print( { pid = Pid , registered_name = RegisteredNameOpt , ancestry = #beam_stats_process_ancestry - { raw_initial_call = InitialCallRaw - , otp_initial_call = InitialCallOTPOpt - , otp_ancestors = AncestorsOpt + { raw_initial_call = InitialCallRaw + , otp_initial_call = InitialCallOTPOpt + , otp_ancestors = AncestorsOpt } , status = Status , memory = Memory diff --git a/src/beam_stats_producer.erl b/src/beam_stats_producer.erl index e27f9a3..eab1759 100644 --- a/src/beam_stats_producer.erl +++ b/src/beam_stats_producer.erl @@ -30,8 +30,8 @@ -define(PRODUCE_ASYNC , produce_async). -record(state, - { consumers = ordsets:new() :: ordsets:ordset(pid()) - , deltas_server :: beam_stats_delta:t() + { consumers = ordsets:new() :: ordsets:ordset(pid()) + , deltas_server :: beam_stats_delta:t() }). -type state() :: @@ -113,7 +113,7 @@ produce_async(#state{}=State) -> state(). produce( #state - { consumers = ConsumersSet + { consumers = ConsumersSet , deltas_server = DeltasServer }=State, MsgSendFun