Example #1
0
        public TychaiaProfiler()
        {
            if (SingletonProtection != null)
            {
                throw new InvalidOperationException();
            }

            SingletonProtection = this;
            this.MeasureCosts = new Dictionary<string, double>();
        }
 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();
 }
 public TychaiaProfilingInterceptor(TychaiaProfiler profiler)
 {
     this.m_Profiler = profiler;
 }
Example #4
0
 public TychaiaProfilerHandle(TychaiaProfiler profiler, string name)
 {
     this.m_Profiler = profiler;
     this.m_Name = name;
     this.m_Stopwatch = new Stopwatch();
     this.m_Stopwatch.Start();
 }