void SampleData(int begin, int end) { ClearAllData(); if (isSampleCPU) { CPUUsedTimePorprotion = ProfilerWindow.UsedTimeProportion(begin, end, timeThreshold, timeThreshold.Length); cpuData = ProfilerWindow.CPUOrGPUUsedTime(begin, end, ProfilerColumn.TotalTime); } if (isSampleGPU) { gpuData = ProfilerWindow.CPUOrGPUUsedTime(begin, end, ProfilerColumn.TotalGPUTime); } if (isSampleGC) { GCTotalTime = 0; GCFrame = ProfilerWindow.GCCollectCount(begin, end, "GC.Collect", ref GCTotalTime); } if (isSampleFuncDetail) { CPUFunctionDetail = ProfilerWindow.CPUFunctionDetail(begin, end, targetName); } if (isPrintHighUsedFunc) { highFuncList = ProfilerWindow.HighUsedFunc(begin, end, highFuncPorprotion); } SaveDataAndDraw(); }