sdong
c7742452eb
Add Statistics.getHistogramString() to print more detailed outputs of a histogram
Summary:
Provide a way for users to know more detailed ditribution of a histogram metrics. Example outputs:
Manually add statement
fprintf(stdout, "%s\n", dbstats->getHistogramString(SST_READ_MICROS).c_str());
Will print out something like:
Count: 989151 Average: 1.7659 StdDev: 1.52
Min: 0.0000 Median: 1.2071 Max: 860.0000
Percentiles: P50: 1.21 P75: 1.70 P99: 5.12 P99.9: 13.67 P99.99: 21.70
------------------------------------------------------
[ 0, 1 ) 390839 39.513% 39.513% ########
[ 1, 2 ) 500918 50.641% 90.154% ##########
[ 2, 3 ) 79358 8.023% 98.177% ##
[ 3, 4 ) 6297 0.637% 98.813%
[ 4, 5 ) 1712 0.173% 98.986%
[ 5, 6 ) 1134 0.115% 99.101%
[ 6, 7 ) 1222 0.124% 99.224%
[ 7, 8 ) 1529 0.155% 99.379%
[ 8, 9 ) 1264 0.128% 99.507%
[ 9, 10 ) 988 0.100% 99.607%
[ 10, 12 ) 1378 0.139% 99.746%
[ 12, 14 ) 1828 0.185% 99.931%
[ 14, 16 ) 410 0.041% 99.972%
[ 16, 18 ) 72 0.007% 99.980%
[ 18, 20 ) 67 0.007% 99.986%
[ 20, 25 ) 106 0.011% 99.997%
[ 25, 30 ) 24 0.002% 99.999%
[ 30, 35 ) 1 0.000% 100.000%
[ 250, 300 ) 2 0.000% 100.000%
[ 300, 350 ) 1 0.000% 100.000%
[ 800, 900 ) 1 0.000% 100.000%
Test Plan: Manually add a print in db_bench and make sure it prints out as expected. Will add some codes to cover the function
Subscribers: leveldb, dhruba
Differential Revision: https://reviews.facebook.net/D43611
2015-08-05 20:05:56 -07:00
..
2014-12-02 12:09:20 -08:00
2015-03-17 14:08:00 -07:00
2015-07-07 16:58:20 -07:00
2015-03-12 21:13:53 +03:00
2015-07-27 14:25:57 -07:00
2015-07-22 14:36:43 -07:00
2015-07-01 16:13:56 -07:00
2015-06-18 15:58:00 -07:00
2015-07-13 13:50:18 -07:00
2015-03-17 14:08:00 -07:00
2015-04-25 18:14:27 +09:00
2015-02-19 13:11:10 -08:00
2014-11-07 15:04:30 -08:00
2015-06-19 09:43:08 -07:00
2015-06-18 13:56:31 -07:00
2015-07-02 11:35:51 -07:00
2015-03-17 14:08:00 -07:00
2014-08-19 06:48:21 -07:00
2014-11-11 16:47:22 -05:00
2015-07-28 16:41:40 -07:00
2015-02-26 11:28:41 -08:00
2015-06-18 14:55:05 -07:00
2015-03-17 14:08:00 -07:00
2015-07-10 17:59:36 -07:00
2015-07-10 17:59:36 -07:00
2015-07-16 13:56:17 +08:00
2014-11-13 14:39:30 -05:00
2015-08-04 22:19:07 -07:00
2015-08-05 14:27:02 -07:00
2015-08-05 19:16:52 -07:00
2015-08-04 20:45:27 -07:00
2015-08-05 19:16:52 -07:00
2015-03-17 14:08:00 -07:00
2014-12-02 12:09:20 -08:00
2015-07-07 16:58:20 -07:00
2015-07-20 17:20:40 -07:00
2015-08-05 06:06:39 -07:00
2015-07-17 16:58:18 -07:00
2015-07-16 12:10:16 -07:00
2015-03-17 14:08:00 -07:00
2015-05-21 15:39:30 -07:00
2015-07-17 10:07:40 -07:00
2015-07-21 16:22:40 -07:00
2015-08-05 14:27:02 -07:00
2015-08-05 13:02:33 -07:00
2015-07-17 16:58:18 -07:00
2014-11-14 11:38:26 -08:00
2015-03-17 14:08:00 -07:00
2013-10-16 17:48:41 -07:00
2015-07-13 13:50:18 -07:00
2014-12-02 12:09:20 -08:00
2015-07-13 13:50:18 -07:00
2014-12-02 12:09:20 -08:00
2015-02-26 11:28:41 -08:00
2014-12-02 12:09:20 -08:00
2014-11-11 16:47:22 -05:00
2014-11-20 10:49:32 -08:00
2015-07-16 11:22:21 +02:00
2015-07-15 03:34:40 -07:00
2015-04-25 18:14:27 +09:00
2015-04-25 18:14:27 +09:00
2015-07-13 13:50:18 -07:00
2015-02-09 17:55:12 -08:00
2015-02-04 21:39:45 -08:00
2015-06-12 10:45:02 -07:00
2015-07-16 12:10:16 -07:00
2015-07-01 16:13:56 -07:00
2015-08-03 11:02:09 -07:00
2015-07-17 10:07:40 -07:00
2014-12-12 17:50:36 -08:00
2015-07-07 16:58:20 -07:00
2015-07-01 16:13:56 -07:00
2014-05-09 08:41:02 -07:00
2015-03-30 11:28:25 -07:00
2015-03-30 11:28:25 -07:00
2015-07-16 12:10:16 -07:00
2015-07-20 17:20:40 -07:00
2015-07-20 17:20:40 -07:00
2015-07-20 17:20:40 -07:00
2015-07-20 17:20:40 -07:00
2015-07-20 17:20:40 -07:00
2013-10-16 17:48:41 -07:00
2014-11-11 16:47:22 -05:00
2015-07-17 12:02:52 -07:00
2015-08-03 11:32:14 -07:00
2014-06-16 15:41:46 -07:00
2014-12-04 13:56:14 -08:00
2015-07-17 12:02:52 -07:00
2014-11-18 22:21:02 +01:00
2015-07-17 12:02:52 -07:00
2015-08-04 20:45:27 -07:00
2015-06-02 02:07:58 -07:00
2015-07-16 12:10:16 -07:00
2015-07-01 16:13:56 -07:00
2015-07-01 16:13:56 -07:00
2015-06-02 02:07:58 -07:00
2015-07-07 16:58:20 -07:00
2013-10-16 17:48:41 -07:00
2015-03-18 15:35:55 -07:00
2015-07-01 16:13:56 -07:00
2015-07-01 16:13:56 -07:00
2014-09-04 17:40:41 -07:00
2015-06-16 18:13:23 -07:00
2015-03-17 14:08:00 -07:00
2015-07-13 13:50:18 -07:00
2015-07-29 17:42:13 -07:00
2015-07-29 17:42:13 -07:00
2015-08-04 10:56:49 -07:00
2015-08-05 20:05:56 -07:00
2015-08-05 20:05:56 -07:00
2015-07-14 09:35:48 +02:00
2013-12-03 12:42:15 -08:00
2014-07-28 12:22:37 -07:00
2014-11-21 11:05:28 -05:00
2015-07-01 16:13:56 -07:00
2015-07-17 16:58:18 -07:00
2015-07-17 16:58:18 -07:00
2015-03-19 17:32:43 -07:00
2015-03-19 17:32:43 -07:00
2015-07-17 16:58:18 -07:00
2015-08-05 07:33:27 -07:00
2015-03-17 14:08:00 -07:00
2015-07-01 16:13:56 -07:00
2015-07-13 13:50:18 -07:00
2015-07-13 13:50:18 -07:00
2015-07-17 18:59:11 +02:00
2015-07-01 16:13:56 -07:00
2015-01-13 00:04:08 -08:00
2015-07-01 16:13:56 -07:00
2015-07-01 16:13:56 -07:00
2015-04-13 15:58:45 -07:00
2015-06-17 11:21:18 -07:00
2015-06-17 11:21:18 -07:00
2015-07-01 16:13:56 -07:00
2015-07-02 17:23:41 -07:00
2015-07-02 17:23:41 -07:00
2015-03-12 12:07:10 -07:00
2015-03-12 12:07:10 -07:00