home
/
code
/
beam_stats.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: reduce per-process granularity even further
[beam_stats.git]
/
src
/
beam_stats_msg_graphite.erl
diff --git
a/src/beam_stats_msg_graphite.erl
b/src/beam_stats_msg_graphite.erl
index
22990a4
..
87dae3e
100644
(file)
--- a/
src/beam_stats_msg_graphite.erl
+++ b/
src/beam_stats_msg_graphite.erl
@@
-253,12
+253,7
@@
ancestors_to_bin([A | Ancestors]) ->
ancestor_to_bin(A) when is_atom(A) ->
atom_to_binary(A, utf8);
ancestor_to_bin(A) when is_pid(A) ->
ancestor_to_bin(A) when is_atom(A) ->
atom_to_binary(A, utf8);
ancestor_to_bin(A) when is_pid(A) ->
- pid_to_bin(A).
-
-pid_to_bin(Pid) ->
- PidList = erlang:pid_to_list(Pid),
- PidBin = re:replace(PidList, "[\.]", "_", [global, {return, binary}]),
- re:replace(PidBin , "[><]", "" , [global, {return, binary}]).
+ <<"PID">>.
-spec mfa_to_bin(mfa()) ->
binary().
-spec mfa_to_bin(mfa()) ->
binary().
This page took
0.026485 seconds
and
4
git commands to generate.