private static void hprof(LinksSaver linksSaver, int mapperProfNum, int reducerProfNum, 
			String hprofDir, String simpleDir, boolean hasCPU) {
		String mapperUrl;
		String reducerUrl;
		
		// /home/xulijie/MR-MEM/HprofBigExperiments/HprofBigWiki-m36-r18/hprofLog/jobId/
		File jobIdHprofFile = new File(hprofDir);
		if(!jobIdHprofFile.exists())
			jobIdHprofFile.mkdirs();
		
		File jobIdSimpleFile = new File(simpleDir);
		if(!jobIdSimpleFile.exists())
			jobIdSimpleFile.mkdirs();
		
		for(int i = 0; i < mapperProfNum; i++) {
			List<String> countersList = new ArrayList<String>();
			mapperUrl = getMapperLogUrl(linksSaver.getMap_tasks_list().get(i), countersList);
			//System.out.println(mapperUrl);
			String taskLink = linksSaver.getMap_tasks_list().get(i);
			genMemAndCPUInfo(mapperUrl, countersList, jobIdHprofFile, 
					jobIdSimpleFile, taskLink.substring(taskLink.lastIndexOf('=') + 1), hasCPU);
		}
		
		for(int i = 0; i < reducerProfNum; i++) {
			List<String> countersList = new ArrayList<String>();
			reducerUrl = getReducerLogUrl(linksSaver.getReduce_tasks_list().get(i), countersList);
			//System.out.println(reducerUrl);
			String taskLink = linksSaver.getReduce_tasks_list().get(i);
			genMemAndCPUInfo(reducerUrl, countersList, jobIdHprofFile, 
					jobIdSimpleFile, taskLink.substring(taskLink.lastIndexOf('=') + 1), hasCPU);
		}
	}