zaidoon1 / rust-rocksdb

rust wrapper for rocksdb
Apache License 2.0
12 stars 3 forks source link

Improve statistics by auto gen enum Ticker & enum Histogram (#924) #95

Closed zaidoon1 closed 2 months ago

zaidoon1 commented 2 months ago
  1. librocksdb-sys/Makefile: Add gen_statistics and gen_statistics.bash, make -C librocksdb-sys gen_statistics will generate 2 files: src/statistics_enum_ticker.rs src/statistics_enum_histogram.rs

  2. In statistics.rs, we include! these 2 files and remove old hand writing enum Tickers & enum Histograms.

  3. File gen_statistics.bash is used for generating these 2 files which is called in Makefile.