anchor.diff: +%% @author Jesper Louis Andersen <jesper.louis.andersen@gmail.com>
  +%% @doc Top level application entry point.
  +%% <p>This module is intended to be used by the application module of
  +%% OTP and not by a user. Its only interesting clal is
  +%% profile_output/0 which can be used to do profiling.</p>
  +%% @end
   -module(etorrent_app).
   -behaviour(application).
   
  
positive.code:     eprof:log("total.profile"),
      eprof:analyze(total).
  
  %% @doc Application callback.
  %% @end
  prep_stop(_S) ->
      io:format("Shutting down etorrent~n"),
      ok.
  
  %% @doc Application callback.
  %% @end
  stop(_State) ->
      ok.
  
  
negative.code: 	    ignore
      end.
  
  %% @doc Output profile information
  %% <p>If profiling was enabled, output profile information in
  %% "procs.profile" and "total.profile"</p>
  %% @end
  profile_output() ->
      eprof:stop_profiling(),
      eprof:log("procs.profile"),
  