nickva commented on issue #761: Add a debugging utilities for listing processes
URL: https://github.com/apache/couchdb/pull/761#issuecomment-324092561
 
 
   +1 but see the comments about maybe renaming some things and the repeated 
`link_tree` in help function
   
   ```
   ??couch_debug:print_linked_processes(couch_server).
   name                                              | reductions | 
message_queue_len |  memory
   couch_server[<0.263.0>]                           |   49101    |         0   
      |  68528
     couch_db_updater:init/1[<0.351.0>]              |   27196    |         0   
      |  68072
       couch_server[<0.263.0>]                       |   49101    |         0   
      |  68528
     couch_db_updater:init/1[<0.571.0>]              |   13942    |         0   
      |  42488
       couch_server[<0.263.0>]                       |   49101    |         0   
      |  68528
     couch_db_updater:init/1[<0.1578.0>]             |   13475    |         0   
      |  101632
       couch_server[<0.263.0>]                       |   49101    |         0   
      |  68528
     couch_db_updater:init/1[<0.414.0>]              |    5858    |         0   
      |  34584
       couch_server[<0.263.0>]                       |   49101    |         0   
      |  68528
     couch_db_updater:init/1[<0.307.0>]              |   11234    |         0   
      |  21936
       couch_server[<0.263.0>]                       |   49101    |         0   
      |  68528
     couch_db_updater:init/1[<0.337.0>]              |   17870    |         0   
      |  26680
       couch_server[<0.263.0>]                       |   49101    |         0   
      |  68528
     couch_primary_services[<0.260.0>]               |    214     |         0   
      |   5960
   ok
   ([email protected])4> couch_debug:print_linked_processes(couch_index_server).
   name                                              | reductions | 
message_queue_len |    memory    |id
   couch_index_server[<0.271.0>]                     |   16763    |         0   
      |    29736     |
     couch_secondary_services[<0.266.0>]             |   24456    |         0   
      |    55656     |
     couch_event_listener:do_init/3[<0.273.0>]       |    3131    |         0   
      |    26592     |
       couch_index_server[<0.271.0>]                 |   16763    |         0   
      |    29736     |
   ok
   ```
   
   ```
   ======================== EUnit ========================
   module 'couch_debug'
     link_tree tests
       couch_debug:505: should_have_same_shape...ok
       couch_debug:513: should_include_extra_info...ok
       [done in 0.011 s]
     [done in 0.011 s]
   =======================================================
     2 tests passed.
   ```
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to