int main( int argc, char *argv[] ) { auto start = usecs(); initCallback(argc, argv); makeBlockMaps(); initHashtables(); buildNullBlock(); buildBlockHeaders(); computeBlockHeights(); wireLongestChain(); parseLongestChain(); cleanMaps(); auto elapsed = (usecs() - start)*1e-6; info("all done in %.2f seconds\n", elapsed); return 0; }
int main( int argc, char *argv[] ) { auto start = Timer::usecs(); fprintf(stderr, "\n"); info("mem at start = %.3f Gigs", getMem()); initCallback(argc, argv); findBlockFiles(); initHashtables(); buildNullBlock(); buildBlockHeaders(); computeBlockHeights(); wireLongestChain(); parseLongestChain(); cleanBlockFiles(); auto elapsed = (Timer::usecs() - start)*1e-6; info("all done in %.2f seconds", elapsed); info("mem at end = %.3f Gigs\n", getMem()); return 0; }