X-Git-Url: https://pd.if.org/git/?p=zpackage;a=blobdiff_plain;f=zpm-syncfs.c;h=59a88256f66c0cfb963750b8119a856876ddd668;hp=0b88928d456ae875bd940a8d1fdabdf65c0f30ec;hb=aeefcd018ce388d9a4f496994fd9961d13ba62df;hpb=339988d64465820bfce614d4939cdf6a03cd3c51 diff --git a/zpm-syncfs.c b/zpm-syncfs.c index 0b88928..59a8825 100644 --- a/zpm-syncfs.c +++ b/zpm-syncfs.c @@ -871,6 +871,12 @@ static int install_files(void *f, int ncols, char **vals, char **cols) { return conf->errabort; } +#if 0 + int64_t used, high; + used = sqlite3_memory_used()/1024/1024; + high = sqlite3_memory_highwater(0)/1024/1024; + fprintf(stderr, "memory = %ld MB / %ld MB\n", used, high); +#endif if (conf->verbose && !conf->dryrun) { fprintf(stderr, "%s '%c' %s\n", nitem.opstr, nitem.ftype, nitem.dest);