Example #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);
        }
Example #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();
 }