GCC Code Coverage Report


Directory: src/
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 4 / 0 / 4
Functions: 100.0% 1 / 0 / 1
Branches: -% 0 / 0 / 0

storage/kv_engine/kv_engine_register.cc
Line Branch Exec Source
1 #include "storage/io_backend/force_link.h"
2 #include "storage/kv_engine/engine_composite.h"
3 #include "storage/kv_engine/engine_petkv.h"
4
5 #include "gflags/gflags.h"
6
7 extern "C" void RecStoreForceLinkFasterKVEngine();
8 extern "C" void RecStoreForceLinkHPSEngine();
9
10 namespace {
11 struct IOBackendLinkGuard {
12 10 IOBackendLinkGuard() {
13 10 ForceLinkIOBackends();
14 #ifdef RECSTORE_ENABLE_FASTERKV_ENGINE
15 10 RecStoreForceLinkFasterKVEngine();
16 #endif
17 #ifdef RECSTORE_ENABLE_HPS_ENGINE
18 RecStoreForceLinkHPSEngine();
19 #endif
20 10 }
21 };
22 const IOBackendLinkGuard kIoBackendLinkGuard;
23 } // namespace
24
25 DEFINE_int32(prefetch_method,
26 0,
27 "PetKV BatchGet prefetch method: 0=single Get loop, 1=BatchGet");
28