X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8c32d2978c520a4ff777c92e3ec14a827c60996a..d947ff7466b473eeec602007934f8336a9b17f3c:/src/mc/mc_compare.c diff --git a/src/mc/mc_compare.c b/src/mc/mc_compare.c index e27511e4a5..f016ad3550 100644 --- a/src/mc/mc_compare.c +++ b/src/mc/mc_compare.c @@ -147,6 +147,21 @@ int SIMIX_pre_mc_compare_snapshots(smx_simcall_t simcall, return snapshot_compare(s1, s2, NULL, NULL); } +int get_heap_region_index(mc_snapshot_t s){ + int i =0; + while(i < s->num_reg){ + switch(s->regions[i]->type){ + case 0: + return i; + break; + default: + i++; + break; + } + } + return -1; +} + int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2, mc_comparison_times_t ct1, mc_comparison_times_t ct2){ int raw_mem = (mmalloc_get_current_heap() == raw_heap);