aboutsummaryrefslogtreecommitdiff
path: root/xsig/include
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-26 23:38:30 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-26 23:38:30 -0400
commit617adf4090fbaac3a3b2d943548eeb6516fb9bdd (patch)
treea356c89886ed03dcf0085b4075e754b5ddc3ae9b /xsig/include
parentc95bd9595bdc612a78c6364ce6ca8f20ef28cd52 (diff)
downloaddeduper-617adf4090fbaac3a3b2d943548eeb6516fb9bdd.tar.xz
Add show db engine memory usage.
Diffstat (limited to 'xsig/include')
-rw-r--r--xsig/include/signature_db.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/xsig/include/signature_db.hpp b/xsig/include/signature_db.hpp
index 23e3aae..b98b22a 100644
--- a/xsig/include/signature_db.hpp
+++ b/xsig/include/signature_db.hpp
@@ -94,6 +94,8 @@ public:
std::vector<std::pair<size_t, double>> search_image(const fs::path &path, const populate_cfg_t &cfg, bool insert = false);
+ int64_t db_memory_usage();
+
//disjoint set for keeping similar images in the same group
//some of these probably shouldn't be public. TBD...
void ds_init();