Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
4.5.0
-
None
-
Untriaged
-
Unknown
Description
It would be great if we can have the forestdb latency stats printed out into the fts.log periodically along with other stats. This will help us quickly measure the performance impact of any future changes on the bleve/cbft usecase.
There are 3 forestdb public functions that can be used for this.
Please checkout this loop..
for (int i = 0; i < FDB_LATENCY_NUM_STATS; ++i) {
|
fdb_latency_stat stat;
|
memset(&stat, 0, sizeof(fdb_latency_stat));
|
s = fdb_get_latency_stats(db.fhandle, &stat, i);
|
TEST_CHK(s == FDB_RESULT_SUCCESS);
|
fprintf(stderr, "%s:\t%u\t%u\t%u\t%" _F64 "\n",
|
fdb_latency_stat_name(i),
|
stat.lat_min, stat.lat_avg, stat.lat_max, stat.lat_count);
|
}
|