mmvWriter.setClusterIdentifier(CLUSTER_IDENTIFIER);
final PcpMonitorBridge pcpMonitorBridge = new PcpMonitorBridge(mmvWriter, MetricNameMapper.PASSTHROUGH_MAPPER, new MetricDescriptionTextSource(), new EmptyTextSource());
SelfStartingMonitoringView selfStartingMonitoringView = new SelfStartingMonitoringView(monitorableRegistry, pcpMonitorBridge, 2000);
if (startPcp) {
selfStartingMonitoringView.start();
}
List<CounterIncrementer> counterIncrementers = executeBenchmark(numThreads, iterations, counters);
if (startPcp) {
selfStartingMonitoringView.stop();
}
long timeTaken = System.currentTimeMillis() - begin;
report(startPcp, counters, timeTaken, counterIncrementers);