NCBI C++ ToolKit
|
Search Toolkit Book for bm::bv_statistics
Structure with statistical information about memory allocation footprint, serialization projection, number of vectors. More...
#include <util/bitset/bmfunc.h>
Public Member Functions | |
bv_statistics () noexcept | |
void | add_bit_block () noexcept |
cound bit block More... | |
void | add_gap_block (unsigned capacity, unsigned length, unsigned level) noexcept |
count gap block More... | |
void | reset () noexcept |
Reset statisctics. More... | |
void | add (const bv_statistics &st) noexcept |
Sum data from another sttructure. More... | |
Public Attributes | |
size_t | bit_blocks |
Number of bit blocks. More... | |
size_t | gap_blocks |
Number of GAP blocks. More... | |
size_t | ptr_sub_blocks |
Number of sub-blocks. More... | |
size_t | bv_count |
Number of bit-vectors. More... | |
size_t | max_serialize_mem |
estimated maximum memory for serialization More... | |
size_t | memory_used |
memory usage for all blocks and service tables More... | |
size_t | gap_cap_overhead |
gap memory overhead between length and capacity More... | |
gap_word_t | gap_levels [bm::gap_levels] |
GAP block lengths in the bvect. More... | |
unsigned long long | gaps_by_level [bm::gap_levels] |
number of GAP blocks at each level More... | |
Structure with statistical information about memory allocation footprint, serialization projection, number of vectors.
|
inlinenoexcept |
|
inlinenoexcept |
Sum data from another sttructure.
Definition at line 103 of file bmfunc.h.
References bit_blocks, bv_count, gap_blocks, gap_cap_overhead, max_serialize_mem, memory_used, and ptr_sub_blocks.
Referenced by NVcfUtil::AddStats(), bm::sparse_vector< Val, BV >::optimize(), and bm::str_sparse_vector< CharType, BV, STR_SIZE >::optimize().
|
inlinenoexcept |
cound bit block
Definition at line 70 of file bmfunc.h.
References bit_blocks, max_serialize_mem, memory_used, and bm::set_block_size.
Referenced by bm::blocks_manager< Alloc >::optimize_block().
|
inlinenoexcept |
count gap block
Definition at line 79 of file bmfunc.h.
References BM_ASSERT, gap_blocks, gap_cap_overhead, bm::gap_levels, gaps_by_level, max_serialize_mem, and memory_used.
Referenced by bm::blocks_manager< Alloc >::optimize_block().
|
inlinenoexcept |
Reset statisctics.
Definition at line 94 of file bmfunc.h.
References bit_blocks, bv_count, gap_blocks, gap_cap_overhead, bm::gap_levels, gaps_by_level, i, max_serialize_mem, memory_used, and ptr_sub_blocks.
Referenced by bv_statistics(), CVCFVariantList::GetStatistics(), bm::bvector< Alloc >::optimize(), bm::sparse_vector< Val, BV >::optimize(), and TestSparseVector().
size_t bm::bv_statistics::bit_blocks |
Number of bit blocks.
Definition at line 57 of file bmfunc.h.
Referenced by add(), add_bit_block(), AggregatorTest(), AndOperationsTest(), AndOrOperationsTest(), BasicFunctionalityTest(), BvectorBulkSetTest(), BvectorEraseTest(), BvectorInsertTest(), BvectorShiftTest(), BVImportTest(), GenericBVectorTest(), MutationOperationsTest(), OptimizeTest(), OrOperationsTest(), NVcfUtil::PrintStats(), RankFindTest(), reset(), SerializationCompressionLevelsTest(), SetTest(), SubOperationsTest(), TestSignedSparseVector(), TestSignedSparseVectorSerial(), TestSparseVector(), TestSparseVectorSerial(), TestStrSparseVector(), CNetScheduleHandler::x_ProcessStatistics(), and XorOperationsTest().
size_t bm::bv_statistics::bv_count |
size_t bm::bv_statistics::gap_blocks |
Number of GAP blocks.
Definition at line 58 of file bmfunc.h.
Referenced by add(), add_gap_block(), AggregatorTest(), AndOperationsTest(), AndOrOperationsTest(), BvectorBulkSetTest(), BvectorInsertTest(), BvectorShiftTest(), BVImportTest(), GenericBVectorTest(), MutationOperationsTest(), OptimizeTest(), OrOperationsTest(), NVcfUtil::PrintStats(), RankFindTest(), reset(), SerializationCompressionLevelsTest(), SetTest(), SubOperationsTest(), TestSignedSparseVector(), TestSignedSparseVectorSerial(), TestSparseVector(), TestSparseVectorSerial(), TestStrSparseVector(), CNetScheduleHandler::x_ProcessStatistics(), and XorOperationsTest().
size_t bm::bv_statistics::gap_cap_overhead |
gap memory overhead between length and capacity
Definition at line 63 of file bmfunc.h.
Referenced by add(), add_gap_block(), and reset().
gap_word_t bm::bv_statistics::gap_levels[bm::gap_levels] |
GAP block lengths in the bvect.
Definition at line 64 of file bmfunc.h.
Referenced by bm::bvector< Alloc >::optimize().
unsigned long long bm::bv_statistics::gaps_by_level[bm::gap_levels] |
number of GAP blocks at each level
Definition at line 65 of file bmfunc.h.
Referenced by add_gap_block(), OptimizeTest(), and reset().
size_t bm::bv_statistics::max_serialize_mem |
estimated maximum memory for serialization
Definition at line 61 of file bmfunc.h.
Referenced by add(), add_bit_block(), add_gap_block(), BlockLevelTest(), DesrializationTest2(), GenericBVectorTest(), LoadBVDump(), LoadVectors(), MutationOperationsTest(), bm::bvector< Alloc >::optimize(), bm::blocks_manager< Alloc >::optimize_tree(), NVcfUtil::PrintStats(), reset(), ResizeTest(), SerializationOperation(), SerializationTest(), CDataFrame< MAX_SIZE >::Serialize(), CBVector_data::SetBitVector(), and StressTest().
size_t bm::bv_statistics::memory_used |
memory usage for all blocks and service tables
Definition at line 62 of file bmfunc.h.
Referenced by add(), add_bit_block(), add_gap_block(), EmptyBVTest(), FreezeTest(), MutationOperationsTest(), bm::bvector< Alloc >::optimize(), bm::rsc_sparse_vector< Val, SV >::optimize(), NVcfUtil::PrintStats(), reset(), SetTest(), StressTest(), and CNetScheduleHandler::x_ProcessStatistics().
size_t bm::bv_statistics::ptr_sub_blocks |
Number of sub-blocks.
Definition at line 59 of file bmfunc.h.
Referenced by add(), AndOperationsTest(), BasicFunctionalityTest(), GenericBVectorTest(), bm::blocks_manager< Alloc >::optimize_tree(), OptimizeTest(), OrOperationsTest(), reset(), SubOperationsTest(), and XorOperationsTest().