andytill / erlyberly

erlang tracing for the masses
https://twitter.com/erlyberlytips
GNU General Public License v3.0
693 stars 43 forks source link

Show modules as they are loaded #85

Closed andytill closed 8 years ago

andytill commented 8 years ago

Push notifications of module loads to the erlyberly UI so it can update the interface automatically. This means the user does not have to reload modules all the time.

Now when erlyberly loads it will start dbg straight away to put traces onto the code module to listen for modules being loaded. Previously it would only start it when the first trace was applied.

Modules can also be loaded form the code paths at start up so they are shown in the modules tree ready for tracing. All the code paths known to the node are filtered using the regular expression in the loadModulesRegex property in the .erlyberly configuration file. The beam files in the matched apps ebin directory are loaded if they are not already.

For example.

loadModulesRegex=.*riak.*

This will load all beams where the app file path has riak in it.

Fixes #46