Browse Source

Excluded binary and LevelDB based SCV TXR backends

pull/3/head
Eyck Jentzsch 1 year ago
parent
commit
0f5b5f68e7
4 changed files with 8 additions and 12 deletions
  1. +2
    -0
      incl/scc/scv_tr_db.h
  2. +1
    -1
      incl/scc/tracer.h
  3. +5
    -3
      src/CMakeLists.txt
  4. +0
    -8
      src/tracer.cpp

+ 2
- 0
incl/scc/scv_tr_db.h View File

@ -26,6 +26,7 @@ void scv_tr_sqlite_init();
*/
void scv_tr_compressed_init();
#ifdef USE_EXTENDED_DB
/**
*initializes the infrastructure to use a binary transaction recording database
*/
@ -34,5 +35,6 @@ void scv_tr_binary_init();
* initializes the infrastructure to use a LevelDB based transaction recording database
*/
void scv_tr_ldb_init();
#endif
#endif /* _SCC_SCV_TR_DB_H_ */

+ 1
- 1
incl/scc/tracer.h View File

@ -42,7 +42,7 @@ public:
/**
*
*/
enum file_type { NONE, TEXT, COMPRESSED, BINARY, SQLITE, LEVEL };
enum file_type { NONE, TEXT, COMPRESSED, SQLITE/*, BINARY, LEVEL*/ };
/**
*
* @param name basename of the trace file(s)

+ 5
- 3
src/CMakeLists.txt View File

@ -9,15 +9,17 @@ set(LIB_SOURCES
jsoncpp.cpp
configurer.cpp
perf_estimator.cpp
scv_tr_binary/scv_tr_binary.cpp
)
if(SCV_FOUND)
if(ZLIB_FOUND)
set(LIB_SOURCES ${LIB_SOURCES} scv_tr_compressed.cpp)
endif(ZLIB_FOUND)
if(CONAN_LEVELDB_ROOT)
set(LIB_SOURCES ${LIB_SOURCES} scv_tr_ldb/scv_tr_ldb.cpp )
if(FALSE)
set(LIB_SOURCES ${LIB_SOURCES} scv_tr_binary/scv_tr_binary.cpp)
if(CONAN_LEVELDB_ROOT)
set(LIB_SOURCES ${LIB_SOURCES} scv_tr_ldb/scv_tr_ldb.cpp )
endif()
endif()
set(LIB_SOURCES ${LIB_SOURCES} scv_tr_sqlite/scv_tr_sqlite.cpp scv_tr_sqlite/sqlite3.c )
endif(SCV_FOUND)

+ 0
- 8
src/tracer.cpp View File

@ -58,18 +58,10 @@ tracer::tracer(const std::string &&name, file_type type, bool enable)
scv_tr_compressed_init();
ss << ".txlog";
break;
case BINARY:
scv_tr_binary_init();
ss << ".txb";
break;
case SQLITE:
scv_tr_sqlite_init();
ss << ".txdb";
break;
case LEVEL:
scv_tr_ldb_init();
ss << ".txldb";
break;
}
txdb = new scv_tr_db(ss.str().c_str());
scv_tr_db::set_default_db(txdb);

Loading…
Cancel
Save