[erlang-questions] How to force kernel application will always be started before my app

mats cronqvist masse@REDACTED
Tue Nov 25 21:33:41 CET 2008


Richard Carlsson <richardc@REDACTED> writes:

> Roger Critchlow wrote:
>> I'd think that:
>> 
>>    an event that fired when Module:Function/Arity was called
>>    an event that fired when Module:Function/Arity returned
>>    an event that fired when Module:Function/Arity was aborted by an
>> exception
>> 
>> would cover a lot of cases.
>
> That's the sort of thing tracing is for. 

  i.e. erlang:trace and erlang:trace_pattern.

> What we're talking about would be a gen_event server that publishes
> relatively rarely occurring events.

  enhancing erlang:system_monitor/2 might be a better solution.

  mats



More information about the erlang-questions mailing list