Ejemplo n.º 1
0
        public static void StopProfiling(IceProfilerNames id)
        {
            #if (PROFILE)
            if (ProfilingEnabled)
            {
                IceProfile Item = GetProfileByName((int)id);

                if (Item == null)
                {
                    throw new NotSupportedException("Profile doesn't exist");
                }

                if (!Item.IsProfiling)
                {
                    throw new NotSupportedException(id + " isn't currently profiling, try starting it first");
                }

                Item.StopProfiling();
            }
            #endif
        }
Ejemplo n.º 2
0
        public static void StartProfiling(IceProfilerNames id)
        {
            #if(PROFILE)
            if (ProfilingEnabled)
            {

                IceProfile Item = GetProfileByName((int)id);

                if (Item == null)
                {
                    Item = new IceProfile((int)id);
                    PropertyProfiles.Add((int)id, Item);
                }

                if (Item.IsProfiling)
                    throw new NotSupportedException(id + " is currently profiling, try stopping it first");

                Item.StartProfiling();
            }
            #endif
        }
Ejemplo n.º 3
0
        public static void StartProfiling(IceProfilerNames id)
        {
            #if (PROFILE)
            if (ProfilingEnabled)
            {
                IceProfile Item = GetProfileByName((int)id);

                if (Item == null)
                {
                    Item = new IceProfile((int)id);
                    PropertyProfiles.Add((int)id, Item);
                }

                if (Item.IsProfiling)
                {
                    throw new NotSupportedException(id + " is currently profiling, try stopping it first");
                }

                Item.StartProfiling();
            }
            #endif
        }