예제 #1
0
        static ModuleData CreateWithProfilerModule(ProfilerModule module)
        {
            var isEditable = module is DynamicProfilerModule;
            var moduleData = new ModuleData(module.Identifier, module.DisplayName, isEditable);

            var chartCounters = new List <ProfilerCounterData>(ProfilerCounterDataUtility.ConvertToLegacyCounterDatas(module.ChartCounters));

            moduleData.m_ChartCounters = chartCounters;

            return(moduleData);
        }
예제 #2
0
 void UpdatePhysicsChart()
 {
     if (m_ShowStatsView == PhysicsProfilerStatsView.Current)
     {
         InternalSetChartCounters(ProfilerCounterDataUtility.ConvertFromLegacyCounterDatas(
                                      new List <ProfilerCounterData>(k_DefaultPhysicsAreaCounterNames)));
     }
     else
     {
         m_ShowStatsView = PhysicsProfilerStatsView.Legacy;
         InternalSetChartCounters(ProfilerCounterDataUtility.ConvertFromLegacyCounterDatas(
                                      new List <ProfilerCounterData>(k_LegacyPhysicsAreaCounterNames)));
     }
     RebuildChart();
 }