Example #1
0
UINT IR_EXPR_TAB::count_mem()
{
    UINT count = 0;
    count += sizeof(m_expr_count);
    count += sizeof(m_ru);
    count += m_ir_expr_vec.count_mem();
    count += m_ir_expr_lst.count_mem();
    count += smpoolGetPoolSize(m_pool);
    count += sizeof(m_level1_hash_tab) * IR_EXPR_TAB_LEVEL1_HASH_BUCKET;
    count += m_map_ir2ir_expr.count_mem();
    return count;
}
Example #2
0
size_t UseDefMgr::count_mem()
{
    size_t count = 0;
    count += smpoolGetPoolSize(m_mdssainfo_pool);
    count += smpoolGetPoolSize(m_phi_pool);
    count += smpoolGetPoolSize(m_def_pool);
    count += smpoolGetPoolSize(m_defset_pool);
    count += smpoolGetPoolSize(m_vconst_pool);
    count += smpoolGetPoolSize(m_vmd_pool);
    count += smpoolGetPoolSize(m_philist_pool);
    count += smpoolGetPoolSize(m_philist_sc_pool);
    count += m_map_md2vmd.count_mem();
    count += m_vopnd_vec.count_mem();
    count += m_def_vec.count_mem();
    count += sizeof(UseDefMgr);
    return count;
}