Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jegao/fix metric logging #613

Merged
merged 2 commits into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ void Index<T, TagT, LabelT>::load(const char *filename, uint32_t num_threads, ui

reposition_frozen_point_to_end();

_table_stats.tag_memory_usage = _table_stats.node_mem_usage
_table_stats.total_mem_usage = _table_stats.node_mem_usage
+ _table_stats.graph_mem_usage
+ _table_stats.label_mem_usage
+ _table_stats.tag_memory_usage;
Expand Down
2 changes: 1 addition & 1 deletion src/pq_flash_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ int PQFlashIndex<T, LabelT>::load_from_separate_paths(uint32_t num_threads, cons
delete[] norm_val;
}

_table_stats.tag_memory_usage = _table_stats.node_mem_usage
_table_stats.total_mem_usage = _table_stats.node_mem_usage
+ _table_stats.graph_mem_usage
+ _table_stats.label_mem_usage
+ _table_stats.tag_memory_usage;
Expand Down
Loading