I believe this information best comes from runtime. So you should rather
start the application and then traverse the supervision tree, collecting
information like children PIDs, names, behaviours and so on. That should be
interporable too and it is pretty close to how observer works.

I think relying on the module attributes is quite limited because you
cannot rely build the hierarchy from it. Generating a graph could be useful
but I don't see how it would be superior in anyway to observer.



*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D

On Fri, Jun 24, 2016 at 9:18 PM, Chris Keele <[email protected]> wrote:

> It'd be pretty cool if it could just run on compiled BEAM source code!
> That'd make it erlang interoperable too.
>
> The relations between them is the challenge. Do you know if module
> attributes are introspectable in BEAM source? If so, the task could run on
> those too, and erlang/elixir users could manually annotate their modules,
> as well as/instead of Supervisor.Spec injecting them for you. Then it'd be
> super extensible for other usecases, too.
>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/66dfb6e3-0d27-4d2f-ae0d-0b1e47bf2ef1%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/66dfb6e3-0d27-4d2f-ae0d-0b1e47bf2ef1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4JvkvzzwTpHgsvhOFsOtaUyahO-i-v5ARTM-koC5zJD%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to