m_siteId = siteId;
org.voltdb.EELibraryLoader.loadExecutionEngineLibrary(true);
// In mock test environments there may be no stats agent.
final StatsAgent statsAgent = VoltDB.instance().getStatsAgent();
if (statsAgent != null) {
m_plannerStats = new PlannerStatsCollector(siteId);
statsAgent.registerStatsSource(StatsSelector.PLANNER, siteId, m_plannerStats);
}
}