aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/cdv_html_page.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2013-11-19 11:00:32 +0100
committerDan Gudmundsson <[email protected]>2014-01-27 16:13:57 +0100
commit5a30dd40a691d610def7b1f00cf39ed0d78eb900 (patch)
treea9f607e6f972be384b6dbc8f230b85142824da87 /lib/observer/src/cdv_html_page.erl
parentcf20035dc7a4fbab47ce17b99b674e4db5eb7a07 (diff)
downloadotp-5a30dd40a691d610def7b1f00cf39ed0d78eb900.tar.gz
otp-5a30dd40a691d610def7b1f00cf39ed0d78eb900.tar.bz2
otp-5a30dd40a691d610def7b1f00cf39ed0d78eb900.zip
observer: Use crashdump_viewer's term viewer to display large terms and binaries
Diffstat (limited to 'lib/observer/src/cdv_html_page.erl')
-rw-r--r--lib/observer/src/cdv_html_page.erl19
1 files changed, 13 insertions, 6 deletions
diff --git a/lib/observer/src/cdv_html_page.erl b/lib/observer/src/cdv_html_page.erl
index b2d059f7f8..d77238c6cf 100644
--- a/lib/observer/src/cdv_html_page.erl
+++ b/lib/observer/src/cdv_html_page.erl
@@ -84,16 +84,23 @@ handle_event(#wx{event=#wxHtmlLink{type=command_html_link_clicked,
"#Binary?" ++ BinSpec ->
[{"offset",Off},{"size",Size},{"pos",Pos}] =
httpd:parse_query(BinSpec),
- Id = {list_to_integer(Off),
- list_to_integer(Size),
- list_to_integer(Pos)},
+ Id = {cdv, {list_to_integer(Off),
+ list_to_integer(Size),
+ list_to_integer(Pos)}},
+ expand(Id,cdv_bin_wx,State);
+ "#OBSBinary?" ++ BinSpec ->
+ [{"offset",Off},{"size",Size},{"pos",Pos}] =
+ httpd:parse_query(BinSpec),
+ Id = {obs, {Tab, {list_to_integer(Off),
+ list_to_integer(Size),
+ list_to_integer(Pos)}}},
expand(Id,cdv_bin_wx,State);
"#Term?" ++ TermKeys ->
[{"key1",Key1},{"key2",Key2},{"key3",Key3}] =
httpd:parse_query(TermKeys),
- Id = {Tab,{list_to_integer(Key1),
- list_to_integer(Key2),
- list_to_integer(Key3)}},
+ Id = {cdv, {Tab,{list_to_integer(Key1),
+ list_to_integer(Key2),
+ list_to_integer(Key3)}}},
expand(Id,cdv_term_wx,State);
_ ->
cdv_virtual_list:start_detail_win(Target),