pool->whatprovidesdataoff = off;
pool->whatprovidesdataleft = extra;
pool_shrink_whatprovides(pool);
+ POOL_DEBUG(SAT_DEBUG_STATS, "whatprovides memory used: %d K id array, %d K data\n", (pool->ss.nstrings + pool->nrels + WHATPROVIDES_BLOCK) / (1024/sizeof(Id)), (pool->whatprovidesdataoff + pool->whatprovidesdataleft) / (1024/sizeof(Id)));
POOL_DEBUG(SAT_DEBUG_STATS, "createwhatprovides took %d ms\n", sat_timems(now));
}
Id stack[3 * 5];
int keydepth;
int needchunk; /* need a new chunk of data */
+ unsigned int now;
struct _Stringpool *spool;
Repodata data;
+ now = sat_timems(0);
+
memset(&data, 0, sizeof(data));
data.repo = repo;
data.fp = fp;
memset(&stubdata, 0, sizeof(stubdata));
repodata_search(&data, SOLVID_META, REPOSITORY_EXTERNAL, SEARCH_ARRAYSENTINEL, create_stub_cb, &stubdata);
}
+
+ POOL_DEBUG(SAT_DEBUG_STATS, "repo_add_solv took %d ms\n", sat_timems(now));
+ POOL_DEBUG(SAT_DEBUG_STATS, "repo size: %d solvables\n", repo->nsolvables);
+ POOL_DEBUG(SAT_DEBUG_STATS, "repo memory used: %d K incore, %d K idarray\n", data.incoredatalen/1024, repo->idarraysize / (1024/sizeof(Id)));
return 0;
}
solv->rpmrules_end = solv->nrules; /* mark end of rpm rules */
solv->directdecisions = solv->decisionq.count;
+ POOL_DEBUG(SAT_DEBUG_STATS, "rpm rule memory usage: %d K\n", solv->nrules * sizeof(Rule) / 1024);
POOL_DEBUG(SAT_DEBUG_STATS, "decisions so far: %d\n", solv->decisionq.count);
POOL_DEBUG(SAT_DEBUG_STATS, "rpm rule creation took %d ms\n", sat_timems(now));
Id oldcookietype = 0;
Repodata *data;
int count = 0, done = 0;
+ unsigned int now;
+ now = sat_timems(0);
memset(&dbkey, 0, sizeof(dbkey));
memset(&dbdata, 0, sizeof(dbdata));
if (!rootdir)
rootdir = "";
-
if (!(flags & REPO_REUSE_REPODATA))
data = repo_add_repodata(repo, 0);
sat_free(rpmids);
}
}
- if (!(flags & REPO_NO_INTERNALIZE))
- repodata_internalize(data);
- if (rpmhead)
- sat_free(rpmhead);
if (db)
db->close(db, 0);
dbenv->close(dbenv, 0);
+ if (rpmhead)
+ sat_free(rpmhead);
+ if (!(flags & REPO_NO_INTERNALIZE))
+ repodata_internalize(data);
if ((flags & RPMDB_REPORT_PROGRESS) != 0)
pool_debug(pool, SAT_ERROR, "%%%% 100\n");
+ POOL_DEBUG(SAT_DEBUG_STATS, "repo_add_rpmdb took %d ms\n", sat_timems(now));
+ POOL_DEBUG(SAT_DEBUG_STATS, "repo size: %d solvables\n", repo->nsolvables);
+ POOL_DEBUG(SAT_DEBUG_STATS, "repo memory used: %d K incore, %d K idarray\n", data->incoredatalen/1024, repo->idarraysize / (1024/sizeof(Id)));
}
int i, l;
struct stateswitch *sw;
Repodata *data;
+ unsigned int now;
+ now = sat_timems(0);
if (!(flags & REPO_REUSE_REPODATA))
data = repo_add_repodata(repo, 0);
else
sat_free(pd.cscache);
if (!(flags & REPO_NO_INTERNALIZE))
repodata_internalize(data);
+ POOL_DEBUG(SAT_DEBUG_STATS, "repo_add_rpmmd took %d ms\n", sat_timems(now));
+ POOL_DEBUG(SAT_DEBUG_STATS, "repo size: %d solvables\n", repo->nsolvables);
+ POOL_DEBUG(SAT_DEBUG_STATS, "repo memory used: %d K incore, %d K idarray\n", data->incoredatalen/1024, repo->idarraysize / (1024/sizeof(Id)));
}