Inheritance: 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);
        }