anchor.diff:           grab_all_tap_and_checkpoint_stats/0,
            grab_all_tap_and_checkpoint_stats/1,
            log_all_tap_and_checkpoint_stats/0,
  -         diagnosing_timeouts/1]).
  +         diagnosing_timeouts/1,
  +         %% rpc-ed to grab babysitter processes
  +         grab_process_infos/0]).
   
   diag_filter_out_config_password_list([], UnchangedMarker) ->
       UnchangedMarker;
  
positive.code:             {design_docs, [{Bucket, (catch capi_ddoc_replication_srv:full_live_ddocs(Bucket))} || Bucket <- ActiveBuckets]},
              {tap_stats, (catch grab_all_tap_and_checkpoint_stats(4000))}],
      term_to_binary(Diag).
  
  grab_process_infos_loop([], Acc) ->
      Acc;
  
negative.code:     erlang:garbage_collect(),
  
      Processes = proplists:get_value(processes, PerNodeDiag),
  
      BabysitterProcesses0 = proplists:get_value(babysitter_processes, PerNodeDiag, []),
      %% it may be rpc or any other error; just pretend it's the process so that
      %% the error is visible
      BabysitterProcesses = case is_list(BabysitterProcesses0) of
                                true ->
                                    BabysitterProcesses0;
                                false ->
                                    [BabysitterProcesses0]
                            end,
  
      DiagNoProcesses = lists:keydelete(processes, 1,
                                         lists:keydelete(babysitter_processes, 1, PerNodeDiag)),
  
      write_chunk_format(Resp, "per_node_processes(~p) =~n", [Node]),
      lists:foreach(
        fun (Process) ->
                write_chunk_format(Resp, "     ~p~n", [Process])
        end, Processes),
      Resp:write_chunk(<<"\n\n">>),
  
      write_chunk_format(Resp, "per_node_babysitter_processes(~p) =~n", [Node]),
      lists:foreach(
        fun (Process) ->
                write_chunk_format(Resp, "     ~p~n", [Process])
        end, BabysitterProcesses),
      Resp:write_chunk(<<"\n\n">>),
  
      do_continue_handling_per_node_just_diag(Resp, Node, DiagNoProcesses).
  