diff --git a/src/libaevol/7/DnaFactory.h b/src/libaevol/7/DnaFactory.h index 62260827470685a4ea9bf7c4e71f32ec71037eb7..9aa16d4491bd6ba67d2743a88accceac4916d47c 100644 --- a/src/libaevol/7/DnaFactory.h +++ b/src/libaevol/7/DnaFactory.h @@ -74,48 +74,6 @@ namespace aevol { void init(int init_size, int pop_size = -1); - void stats() { - size_t total_length_ = 0; - size_t* a_total_length_ = new size_t[local_list_unused_dna_.size()]; - int32_t nb_dna = 0; - for (std::list<Dna_7 *>::iterator it_dna = list_unused_dna_.begin(); - it_dna != list_unused_dna_.end(); it_dna++) { - total_length_ += (*it_dna)->nb_block() * BLOCK_SIZE * sizeof(char); - nb_dna++; - } - - for (size_t j = 0; j < local_list_unused_dna_.size(); j++) { - a_total_length_[j] = 0; - for (std::list<Dna_7 *>::iterator it_dna = local_list_unused_dna_[j].begin(); - it_dna != local_list_unused_dna_[j].end(); it_dna++) { - total_length_ += (*it_dna)->nb_block() * BLOCK_SIZE * sizeof(char); - a_total_length_[j]+= (*it_dna)->nb_block() * BLOCK_SIZE * sizeof(char); - nb_dna++; - } - - a_total_length_[j] /= 1000000; - } - - total_length_ /= 1000000; - printf("DNA_FACTORY_STATS -- Number of DNAs %d - Combined size %zu Mb (%zu):: ", - // local_empty,empty_global, - // free_local,free_space_local,free_global, - nb_dna, total_length_,local_list_unused_dna_.size()); - for (size_t j = 0; j < local_list_unused_dna_.size(); j++) { - printf("%zu ",a_total_length_[j]); - } - - printf("\n"); - // empty_global = 0; - // local_empty = 0; - - // free_space_local = 0; - // free_local = 0; - // free_global = 0; - - delete [] a_total_length_; - } - Dna_7 *get_dna(int request_size); void give_back(Dna_7 *dna);