Inheritance: BaseProfile
Ejemplo n.º 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;
		}
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }