상속: BaseProfile
예제 #1
0
		public static TimerProfile Acquire( string name ) {
			if ( !Core.Profiling ) {
				return null;
			}

			TimerProfile prof;

			if ( !_profiles.TryGetValue( name, out prof ) ) {
				_profiles.Add( name, prof = new TimerProfile( name ) );
			}

			return prof;
		}
예제 #2
0
        public static TimerProfile Acquire(string name)
        {
            if (!Core.Profiling)
            {
                return(null);
            }


            if (!_profiles.TryGetValue(name, out var prof))
            {
                _profiles.Add(name, prof = new TimerProfile(name));
            }

            return(prof);
        }
예제 #3
0
        public static TimerProfile Acquire(string name)
        {
            var appSettings = IOC.IoC.Resolve <IUOSettings>();

            if (!appSettings.Profiling)
            {
                return(null);
            }

            TimerProfile prof;

            if (!_profiles.TryGetValue(name, out prof))
            {
                _profiles.Add(name, prof = new TimerProfile(name));
            }

            return(prof);
        }