sdong 603b6da8b8 Add options.compaction_measure_io_stats to print write I/O stats in compactions
Summary:
Add options.compaction_measure_io_stats to print out / pass to listener accumulated time spent on write calls. Example outputs in info logs:

2015/08/12-16:27:59.463944 7fd428bff700 (Original Log Time 2015/08/12-16:27:59.463922) EVENT_LOG_v1 {"time_micros": 1439422079463897, "job": 6, "event": "compaction_finished", "output_level": 1, "num_output_files": 4, "total_output_size": 6900525, "num_input_records": 111483, "num_output_records": 106877, "file_write_nanos": 15663206, "file_range_sync_nanos": 649588, "file_fsync_nanos": 349614797, "file_prepare_write_nanos": 1505812, "lsm_state": [2, 4, 0, 0, 0, 0, 0]}

Add two more counters in iostats_context.

Also add a parameter of db_bench.

Test Plan: Add a unit test. Also manually verify LOG outputs in db_bench

Subscribers: leveldb, dhruba

Differential Revision: https://reviews.facebook.net/D44115
2015-08-13 16:52:26 -07:00
..
c.h
2015-07-17 18:59:11 +02:00
2015-06-18 13:56:31 -07:00
2015-08-06 17:59:05 -07:00
2015-08-12 10:18:59 -07:00
2015-04-23 12:10:36 -07:00
2015-08-07 21:59:51 -07:00
2015-07-01 16:13:56 -07:00
2015-08-06 17:59:05 -07:00
2015-08-11 17:52:56 -07:00
2015-08-05 07:33:27 -07:00
2015-07-17 18:59:11 +02:00
2015-08-13 11:17:10 -07:00
2015-07-29 16:54:23 -07:00
2015-07-29 16:54:23 -07:00