Browse files

bug fix to the display of callgraph/time link.

  • Loading branch information...
1 parent 9bef803 commit 7cb8bb11303d4d09549281de197566a5c51a917f @huiqing huiqing committed Oct 4, 2012
Showing with 2 additions and 11 deletions.
  1. +2 −11 src/percept2_html.erl
View
13 src/percept2_html.erl
@@ -1355,20 +1355,11 @@ mfa2html_with_link({Pid, {Module, Function, Arity}}) when is_atom(Module), is_in
mfa2html_with_link(_) ->
"undefined".
-visual_link({Pid,{M,F,A}, _})->
+visual_link({Pid,_, _})->
case has_callgraph(Pid) of
true ->
- MFAValue=lists:flatten(io_lib:format("{~p,~p,~p}", [M, F, A])),
"<a href=\"/cgi-bin/percept2_html/callgraph_visualisation_page?pid=" ++
- pid2str(Pid) ++ "&mfa=" ++ MFAValue ++ "\">" ++ "show call graph/time" ++ "</a>";
- false ->
- "No callgraph/time"
- end;
-visual_link({Pid,undefined, _})->
- case has_callgraph(Pid) of
- true ->
- "<a href=\"/cgi-bin/percept2_html/callgraph_visualisation_page?pid=" ++
- pid2str(Pid) ++ "&mfa=" ++ "undefined" ++ "\">" ++ "show callgraph/time" ++ "</a>";
+ pid2str(Pid) ++ "\">" ++ "show call graph/time" ++ "</a>";
false ->
"No callgraph/time"
end.

0 comments on commit 7cb8bb1

Please sign in to comment.