anchor.diff:  %%    eflame2:write_trace(like_fprof, "/tmp/ef.test.0", all,
   %%                        timer, sleep, [10*1000]).
   %%
  -%% Step 2: Convert the binary trace to text output.
  -%%
  -%%    Acc = eflame2:exp1_init("/tmp/ef.test.0.out").
  -%%    dbg:trace_client(file, "/tmp/ef.test.0", {fun eflame2:exp1/2, Acc}).
  +%% Step 2: Format the binary trace to text output.
  +%%
  +%%    eflame2:format_trace("/tmp/ef.test.0", "/tmp/ef.test.0.out").
   %%
   %% Step 3: Convert text output to SVG.  Note that this script does *NOT*
   %%         require processing by "stack_to_flame.sh".
  
positive.code:     (catch dbg:stop_clear()),
      (exit(Tracer, normal)),
      ok.
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
  
negative.code: %%        ./flamegraph.riak-color.pl > output.svg
  
  %% PidSpec = pid() | [pid()] | existing | new | all
  
  write_trace(Mode, IntermediateFile, PidSpec, M, F, A) ->
      write_trace2(normal, Mode, IntermediateFile, PidSpec, M, F, A).
  
  write_trace_backtrace(Mode, IntermediateFile, PidSpec, M, F, A) ->
      write_trace2(backtrace, Mode, IntermediateFile, PidSpec, M, F, A).
  
  write_trace2(Style, Mode, IntermediateFile, PidSpec, M, F, A) ->
      {ok, Tracer} = start_tracer(IntermediateFile),
      io:format(user, "Tracer ~p\n", [Tracer]),
      io:format(user, "self() ~p\n", [self()]),
  
      start_trace(Style, Tracer, PidSpec, Mode),
      Return = (catch erlang:apply(M, F, A)),
      stop_trace(Tracer, PidSpec),
  
      %% ok = file:write_file(OutputFile, Bytes),
      Return.
  
  start_trace(normal, _Tracer, PidSpec, Mode) ->
      MatchSpec = [{'_',[],[{message,{process_dump}}]}],
      start_trace2(_Tracer, PidSpec, Mode, MatchSpec);
  start_trace(backtrace, _Tracer, PidSpec, Mode) ->
      io:format("\n\nYEAH, using the new hackery!\n\n"),
      MatchSpec = [{'_',[],[{message,{process_backtrace}}]}],
      start_trace2(_Tracer, PidSpec, Mode, MatchSpec).
  
  start_trace2(_Tracer, PidSpec, Mode, MatchSpec) ->
      _X2b = dbg:tpl('_', '_', MatchSpec),
      io:format("X2b ~p\n", [_X2b]),
      if is_list(PidSpec) ->
  