~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/tools/src/eprof.erl

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
195
195
    case ptrac([P|Rootset], true, all()) of
196
196
        true ->
197
197
            call_trace_for_all(true),
 
198
            P ! {self(),go},
198
199
            {noreply, #state{table     = Tab, 
199
200
                             profiling = true,
200
201
                             rootset   = [P|Rootset]}};
201
202
        false ->
 
203
            exit(P, kill),
202
204
            erase(replyto),
203
205
            {reply, error, #state{}}
204
206
    end;
259
261
%%%%%%%%%%%%%%%%%%
260
262
 
261
263
call(Top, M, F, A) ->
262
 
    Top ! {self(), {answer, apply(M,F,A)}}.
 
264
    receive
 
265
        {Top,go} ->
 
266
            Top ! {self(), {answer, apply(M,F,A)}}
 
267
    end.
263
268
 
264
269
call_trace_for_all(Flag) ->
265
270
    erlang:trace_pattern(on_load, Flag, [local]),