/* TEST_HEADER id = $HopeName: MMQA_test_function!93.c(trunk.3) $ summary = EPVM time allocations with checklevels language = c link = testlib.o epvmfmt.o END_HEADER */ #include "testlib.h" #include "mpscepvm.h" #include "mpsavm.h" #include "epvmfmt.h" #include #define MAX_SAVE 1 #define INIT_SAVE 0 void *stackpointer; mps_word_t CheckLevel; #define CheckNONE 0 #define CheckSHALLOW 1 #define CheckDEEP 2 static void timealloc(mps_pool_t pool, mps_ap_t ap, size_t size, int num, int step) { int i, j; clock_t t0, t1; int secs; psobj *a; mps_epvm_save(pool); t0 = clock(); for (j=0; j