Ejemplo n.º 1
0
        private static void SetAnalyzerInfo(List <IAnalyzeFileWriter> analyzeExecutes, ILogReaderPerFrameData logReader)
        {
            ProfilerLogFormat format = ProfilerLogFormat.TypeData;

            if (logReader.GetType() == typeof(UTJ.ProfilerReader.RawData.ProfilerRawLogReader))
            {
                format = ProfilerLogFormat.TypeRaw;
            }
            string unityVersion = Application.unityVersion;

            if (!string.IsNullOrEmpty(overrideUnityVersion))
            {
                unityVersion = overrideUnityVersion;
            }
            foreach (var analyzer in analyzeExecutes)
            {
                analyzer.SetInfo(format, unityVersion, logReader.GetLogFileVersion(), logReader.GetLogFilePlatform());
            }
        }
Ejemplo n.º 2
0
        private void SetAnalyzerInfo(List <IAnalyzeFileWriter> analyzeExecutes, ILogReaderPerFrameData logReader)
        {
            ProfilerLogFormat format = ProfilerLogFormat.TypeData;

            if (logReader.GetType() == typeof(UTJ.ProfilerReader.RawData.ProfilerRawLogReader))
            {
                format = ProfilerLogFormat.TypeRaw;
            }
            foreach (var analyzer in analyzeExecutes)
            {
                analyzer.SetInfo(format, Application.unityVersion, logReader.GetLogFileVersion(), logReader.GetLogFilePlatform());
            }
        }