Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f9edf702 authored by David Parsons's avatar David Parsons
Browse files

remove stale fn DnaFactory::stats()

parent 0ad1391c
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment