[erlang-questions] problems with creating table named 'user' in ets

27 views
Skip to first unread message

cavaluo

unread,
Aug 8, 2012, 11:07:48 PM8/8/12
to erlang-q...@erlang.org
Hi,
  when i create a new ets table named 'user',result returned 'ok',and also i can do any operaton on it,but i can't find in The Table Visualizer,why?

 (cav...@192.168.1.103)15> ets:new(user,[set,public,named_table]).
  user
(cav...@192.168.1.103)18> ets:info(user).
[{compressed,false},
 {memory,316},
 {owner,<0.37.0>},
 {heir,none},
 {name,user},
 {size,0},
 {named_table,true},
 {type,set},
 {keypos,1},
 {protection,public}]

(cav...@192.168.1.103)20> ets:insert(user,{test,1,2,3}).
true
(cav...@192.168.1.103)21> ets:lookup(user,test).
[{test,1,2,3}]






Garret Smith

unread,
Aug 9, 2012, 3:00:53 PM8/9/12
to cavaluo, erlang-q...@erlang.org

I cannot see the table in the Table View either.  I am not sure why.
However, I can see the table through observer:
> observer:start().

tv doesn't get much attention any more as observer is superseding it.
Reply all
Reply to author
Forward
0 new messages