Inheritance: BaseProfile
Exemple #1
0
		public static GumpProfile Acquire( Type type ) {
			if ( !Core.Profiling ) {
				return null;
			}

			GumpProfile prof;

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

			return prof;
		}
Exemple #2
0
        public static GumpProfile Acquire(Type type)
        {
            if (!Core.Profiling)
            {
                return(null);
            }

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

            return(prof);
        }
Exemple #3
0
        public static GumpProfile Acquire(Type type)
        {
            var appSettings = IOC.IoC.Resolve <IUOSettings>();

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

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

            return(prof);
        }