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