anchor.diff:      handle_utils_dir_req/2,
       handle_uuids_req/1,
       handle_welcome_req/1,
  -    handle_welcome_req/2
  +    handle_welcome_req/2,
  +    get_stats/0
   ]).
   
   -include_lib("couch/include/couch_db.hrl").
  
positive.code:     {CF, CDU} = db_pid_stats(),
      MessageQueues0 = [{couch_file, {CF}}, {couch_db_updater, {CDU}}],
      MessageQueues = MessageQueues0 ++ message_queues(registered()),
      send_json(Req, {[
          {uptime, element(1,statistics(wall_clock)) div 1000},
          {memory, {Memory}},
          {run_queue, statistics(run_queue)},
  
negative.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),
  