measure BuildDomains in perf.log