private Map<String, double[]> generateArgumentMap(Machine machine) {
Map<String, double[]> map = new HashMap<String, double[]>();
List<Period> periods = machine.getPeriods();
for (int index = 0; index < periods.size(); index++) {
Period period = periods.get(index);
buildArray(map, index, "ThreadCount", period.getThreadCount());
buildArray(map, index, "DaemonCount", period.getDaemonCount());
buildArray(map, index, "TotalStartedCount", period.getTotalStartedCount());
buildArray(map, index, "CatThreadCount", period.getCatThreadCount());
buildArray(map, index, "PiegonThreadCount", period.getPigeonThreadCount());
buildArray(map, index, "HttpThreadCount", period.getHttpThreadCount());
buildArray(map, index, "NewGcCount", period.getNewGcCount());
buildArray(map, index, "OldGcCount", period.getOldGcCount());
buildArray(map, index, "MemoryFree", period.getMemoryFree());
buildArray(map, index, "HeapUsage", period.getHeapUsage());
buildArray(map, index, "NoneHeapUsage", period.getNoneHeapUsage());
buildArray(map, index, "SystemLoadAverage", period.getSystemLoadAverage());
buildArray(map, index, "CatMessageOverflow", period.getCatMessageOverflow());
buildArray(map, index, "CatMessageSize", period.getCatMessageSize());
}
convertToDeltaArray(map, "TotalStartedCount");
convertToDeltaArray(map, "NewGcCount");
convertToDeltaArray(map, "OldGcCount");
convertToDeltaArray(map, "CatMessageSize");