final long t1 = System.nanoTime();
Portfolio portfolio = getPortfolio(portfolioName);
final long t2 = System.nanoTime();
portfolio = PortfolioCompiler.resolvePortfolio(portfolio, _executorService, _securitySource);
final long t3 = System.nanoTime();
final AvailableOutputs outputs = new AvailablePortfolioOutputs(portfolio, _functionRepository, _functionExclusionGroups, _marketDataAvailability, "?");
final long t4 = System.nanoTime();
s_logger.info("Fetch={}ms, Resolve={}ms, Outputs={}ms", new Object[] {(t2 - t1) / 1e6, (t3 - t2) / 1e6, (t4 - t3) / 1e6 });
s_logger.info("Outputs for {}", portfolio.getName());
for (final AvailableOutput output : outputs.getOutputs()) {
s_logger.info("{}", output);
}
s_logger.info("Portfolio node outputs for {}", portfolio.getName());
for (final AvailableOutput output : outputs.getPortfolioNodeOutputs()) {
s_logger.info("{}", output);
}
s_logger.info("Position outputs for {}", portfolio.getName());
for (final AvailableOutput output : outputs.getPositionOutputs()) {
s_logger.info("{}", output);
}
for (final String securityType : outputs.getSecurityTypes()) {
s_logger.info("{} security outputs for {}", securityType, portfolio.getName());
for (final AvailableOutput output : outputs.getPositionOutputs(securityType)) {
s_logger.info("{}", output);
}
}
return outputs;
}