MCPcopy Create free account
hub / github.com/antgroup/vsag / GetMemoryUsage

Method GetMemoryUsage

src/algorithm/brute_force.cpp:647–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647int64_t
648BruteForce::GetMemoryUsage() const {
649 int64_t memory = 0;
650 {
651 std::shared_lock lock(this->memory_usage_mutex_);
652 memory = this->current_memory_usage_.load();
653 }
654 if (this->attr_filter_index_ != nullptr) {
655 memory += this->attr_filter_index_->GetMemoryUsage();
656 }
657 return memory;
658}
659
660} // namespace vsag

Callers 1

cal_memory_usageMethod · 0.45

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected