Search code examples
erlangelixirets

Is there some way to browse erlang term storage (ETS)


I've got a small Elixir app that is using erlang term storage, and I'd like to browse it and see what's being stored. Is there some way to do that with either Elixir or Erlang?

I'd like to see how big it's getting and what's inside.

Edit: I know that I can look at the processes with :observer.start, but there isn't a process or application that is listed as ets. There is Elixir.Hex.Registry.ETS, but the state or other process information doesn't look like it's the right thing.

I can also print things out in iex however, that is not a great experience.


Solution

  • As mentioned previously, you can use Observer. To view ETS tables, click on Table Viewer tab, then select the table you need and with a right click you get the option to either view Table Info or Show Table Content.

    To start the observer, run:

    :observer.start
    

    Screenshot:

    here's a screenshot