anchor.diff:  % Note: this resource is exposed on the backdoor interface, but it's in chttpd
   % because it's not couch trunk
   handle_system_req(Req) ->
  +    Stats = get_stats(),
  +    EJSON = couch_stats_httpd:to_ejson(Stats),
  +    send_json(Req, EJSON).
  +
  +get_stats() ->
       Other = erlang:memory(system) - lists:sum([X || {_,X} <-
           erlang:memory([atom, code, binary, ets])]),
       Memory = [{other, Other} | erlang:memory([atom, atom_used, processes,
  
positive.code:         {message_queues, {MessageQueues}},
          {internal_replication_jobs, mem3_sync:get_backlog()},
          {distribution, {get_distribution_stats()}}
      ]}).
  
  db_pid_stats() ->
      {monitors, M} = process_info(whereis(couch_stats_process_tracker), monitors),
  
negative.code:     handle_utils_dir_req/2,
      handle_uuids_req/1,
      handle_welcome_req/1,
      handle_welcome_req/2,
      get_stats/0
  ]).
  
  -include_lib("couch/include/couch_db.hrl").
  