Yueh-Hsuan Chiang d0c5f28a5c Introduce GetThreadList API
Summary:
Add GetThreadList API, which allows developer to track the
status of each process.  Currently, calling GetThreadList will
only get the list of background threads in RocksDB with their
thread-id and thread-type (priority) set.  Will add more support
on this in the later diffs.

ThreadStatus currently has the following properties:

  // An unique ID for the thread.
  const uint64_t thread_id;

  // The type of the thread, it could be ROCKSDB_HIGH_PRIORITY,
  // ROCKSDB_LOW_PRIORITY, and USER_THREAD
  const ThreadType thread_type;

  // The name of the DB instance where the thread is currently
  // involved with.  It would be set to empty string if the thread
  // does not involve in any DB operation.
  const std::string db_name;

  // The name of the column family where the thread is currently
  // It would be set to empty string if the thread does not involve
  // in any column family.
  const std::string cf_name;

  // The event that the current thread is involved.
  // It would be set to empty string if the information about event
  // is not currently available.

Test Plan:
./thread_list_test
export ROCKSDB_TESTS=GetThreadList
./db_test

Reviewers: rven, igor, sdong, ljin

Reviewed By: ljin

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D25047
2014-11-20 10:49:32 -08:00
..
2014-10-31 11:59:54 -07:00
2014-09-04 16:18:36 -07:00
2014-11-14 13:42:13 -08:00
2014-11-13 15:21:04 -08:00
2014-11-13 15:21:04 -08:00
2014-11-13 15:21:04 -08:00
2014-11-14 11:35:48 -08:00
2014-11-14 11:52:17 -08:00
2014-11-14 16:57:17 -08:00
2014-11-20 10:49:32 -08:00
2014-11-20 10:49:32 -08:00
2014-11-06 11:14:28 -08:00
2014-11-20 10:49:32 -08:00
2014-11-14 16:57:17 -08:00
2014-11-14 15:43:10 -08:00
2014-01-27 14:49:10 -08:00
2014-11-07 11:50:34 -08:00
2014-11-07 11:50:34 -08:00
2014-10-27 12:10:13 -07:00
2014-11-06 11:14:28 -08:00
2014-10-27 15:03:45 -07:00
2014-09-04 23:06:23 +08:00
2014-11-06 11:14:28 -08:00
2014-11-06 11:14:28 -08:00
2014-10-31 11:59:54 -07:00
2014-10-29 17:43:37 -07:00
2014-11-10 17:39:38 -05:00
2014-09-13 14:14:10 -07:00
2014-09-12 16:23:58 -07:00
2014-09-12 16:23:58 -07:00