コード例 #1
0
ファイル: TychaiaProfiler.cs プロジェクト: TreeSeed/Tychaia
        public TychaiaProfiler()
        {
            if (SingletonProtection != null)
            {
                throw new InvalidOperationException();
            }

            SingletonProtection = this;
            this.MeasureCosts = new Dictionary<string, double>();
        }
コード例 #2
0
 public TychaiaProfilerEntity(
     TychaiaProfiler profiler,
     I2DRenderUtilities twodRenderUtilities,
     IAssetManagerProvider assetManagerProvider,
     IPersistentStorage persistentStorage)
 {
     this.Profiler = profiler;
     this.m_2DRenderUtilities = twodRenderUtilities;
     this.m_DefaultFontAsset = assetManagerProvider.GetAssetManager().Get<FontAsset>("font.Default");
     this.m_ProfilingInformation = new List<FrameProfileInfo>();
     this.m_PersistentStorage = persistentStorage;
     this.m_TychaiaProfilerEntityUtil = new TychaiaProfilerEntityUtil();
 }
コード例 #3
0
 public TychaiaProfilingInterceptor(TychaiaProfiler profiler)
 {
     this.m_Profiler = profiler;
 }
コード例 #4
0
ファイル: TychaiaProfiler.cs プロジェクト: TreeSeed/Tychaia
 public TychaiaProfilerHandle(TychaiaProfiler profiler, string name)
 {
     this.m_Profiler = profiler;
     this.m_Name = name;
     this.m_Stopwatch = new Stopwatch();
     this.m_Stopwatch.Start();
 }