public static void close() {
		if (!initialized)
			return;
		Results results;
		if (useFrame)
			results = new ResultsFrame();
		else
			results = new ResultsToFile();
		calcPercentages();

		for (int i = 0 ; i < names.size(); i++) {
			String profile = names.get(i) + "\n\t\t\tSamples = " + counts.get(i) + "\tTime = " + sums.get(i) + "\t Percent = " + percentages.get(i) + "\n";
			results.print(profile);

		}
	}