ergo
|
Functions | |
void * | ergo_malloc (size_t noOfBytes) |
void | ergo_free (void *p) |
void | report_memory_status () |
Variables | |
static double | globalNoOfBytesAllocated = 0 |
static int | globalMallocCount = 0 |
static int | globalFreeCount = 0 |
static pthread_mutex_t | globalMemStatLock = PTHREAD_MUTEX_INITIALIZER |
void ergo_free | ( | void * | p | ) |
References globalMemStatLock, and globalFreeCount.
Referenced by main(), get_F_orbs(), get_dens_from_fock_full(), Ergo::~Ergo(), variable_free(), es_mol_read_molecule(), ErgoE2Evaluator::transform(), es_getexc(), es_get_polarisability(), compute_gamma_or_J_shelldriven(), densfit_init(), densfit_destroy(), densfit_compute_c_vector(), compute_T_matrix_sparse(), compute_T_matrix_full(), compute_2e_matrix_list_explicit(), compute_2e_matrix_list_difden(), compute_2e_matrix_list(), compute_2e_matrix_coulomb(), get_largest_eigenvalue(), get_euclidean_norm(), get_T(), test_small(), test_mol(), ddf_writeShellListAndDensityMatricesToFile(), ddf_writeShellListAndDensityMatricesToFile_sparse(), ddf_load_density_getSizes(), ddf_read_shells_and_density_matrices(), ddf_read_shells_and_density_matrices_sparse(), load_density_and_project_full(), get_density(), readMoleculeFileInMolFormat(), readMoleculeFileInXyzFormat(), multiply_matrices_general(), multiply_matrices_general_T_1(), multiply_matrices_general_T_2(), and multiply3matrices().
void* ergo_malloc | ( | size_t | noOfBytes | ) |
References do_output(), LOG_CAT_ERROR, LOG_AREA_MAIN, do_output_time(), LOG_CAT_INFO, LOG_AREA_SCF, globalMemStatLock, globalMallocCount, and globalNoOfBytesAllocated.
Referenced by get_F_orbs(), get_dens_from_fock_full(), compute_2e_matrix_list_explicit(), compute_2e_matrix_list_difden(), compute_2e_matrix_list(), get_largest_eigenvalue(), get_euclidean_norm(), ddf_writeShellListAndDensityMatricesToFile(), ddf_writeShellListAndDensityMatricesToFile_sparse(), ddf_load_density_getSizes(), ddf_read_shells_and_density_matrices(), ddf_read_shells_and_density_matrices_sparse(), get_density(), readMoleculeFileInMolFormat(), readMoleculeFileInXyzFormat(), multiply_matrices_general(), multiply_matrices_general_T_1(), multiply_matrices_general_T_2(), and multiply3matrices().
void report_memory_status | ( | void | ) |
References do_output(), LOG_CAT_INFO, LOG_AREA_MAIN, globalMallocCount, and globalFreeCount.
int globalFreeCount = 0 [static] |
Referenced by ergo_free(), and report_memory_status().
int globalMallocCount = 0 [static] |
Referenced by ergo_malloc(), and report_memory_status().
pthread_mutex_t globalMemStatLock = PTHREAD_MUTEX_INITIALIZER [static] |
Referenced by ergo_malloc(), and ergo_free().
double globalNoOfBytesAllocated = 0 [static] |
Referenced by ergo_malloc().