UnityEditor.SimpleProfiler.Begin C# (CSharp) Method

Begin() private method

private Begin ( string label ) : void
label string
return void
        public static void Begin(string label)
        {
            m_Names.Push(label);
            m_StartTime.Push(Time.realtimeSinceStartup);
        }

Usage Example

        private int GetMatchKey(BoneMatch parentMatch, Transform t, BoneMappingItem goalItem)
        {
            SimpleProfiler.Begin("GetMatchKey");
            int key = goalItem.bone;

            key += t.GetInstanceID() * 1000;
            if (parentMatch != null)
            {
                key += parentMatch.bone.GetInstanceID() * 1000000;
                if (parentMatch.parent != null)
                {
                    key += parentMatch.parent.bone.GetInstanceID() * 1000000000;
                }
            }
            SimpleProfiler.End();
            return(key);
        }
All Usage Examples Of UnityEditor.SimpleProfiler::Begin