Permalink
Browse files

clean the pid shown in function info page.

  • Loading branch information...
1 parent f5520e2 commit 0d3b0e1ae53d70d5713cf71e914d3b91a47afed0 huiqing committed Sep 23, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/percept2_html.erl
View
@@ -1146,14 +1146,15 @@ function_info_content_1(_Env, Input) ->
MFA = get_option_value("mfa", Query),
[I] = percept2_db:select({information, Pid}),
[F] = percept2_db:select({funs, {Pid, MFA}}),
+ CleanPid = percept2_db:select({system, nodes})==1,
CallersTable = html_table([[{th, " module:function/arity "}, {th, " call count "}]]++
[[{td, mfa2html_with_link({Pid,C})}, {td, term2html(Count)}]||
{C, Count}<-F#fun_info.callers]),
CalledTable= html_table([[{th, " module:function/arity "}, {th, " call count "}]]++
[[{td, mfa2html_with_link({Pid,C})}, {td, term2html(Count)}]||
{C, Count}<-F#fun_info.called]),
InfoTable = html_table([
- [{th, "Pid"}, pid2html(Pid)],
+ [{th, "Pid"}, pid2html(Pid, CleanPid)],
[{th, "Entrypoint"}, mfa2html(I#information.entry)],
[{th, "M:F/A"}, mfa2html_with_link({Pid, MFA})],
[{th, "Call count"}, term2html(F#fun_info.call_count)],

0 comments on commit 0d3b0e1

Please sign in to comment.