]});
				return false;
			}
			var hours = parseInt(new Date(endTime) - new Date(startTime)) / onHour;
			if(hours > 12){
				layer.msg('时间范围不能超过12个小时', {icon: 5, shift: 6, offset: ['20%', '40%']});
				return false;
			}
			
			draw($, cpuRecords, [10, 11], startTime, endTime);
			draw($, memoryRecords, [20, 21], startTime, endTime);
			
            return false;
        });
	});
	
	function draw($, records, metricsTypes, startTime, endTime){
	
		var appId = localStorage.getItem('appI