EndInstrumentFunction() private méthode

private EndInstrumentFunction ( string fullName ) : void
fullName string
Résultat void
 private void ProfilerInstrumentationPopupCallback(PopupList.ListElement element)
 {
     if (element == this.m_AllCheckbox)
     {
         element.selected = !element.selected;
         foreach (PopupList.ListElement element2 in this.m_FunctionsListInputData.m_ListElements)
         {
             if (element.selected)
             {
                 ProfilerDriver.BeginInstrumentFunction(element2.text);
             }
             else
             {
                 ProfilerDriver.EndInstrumentFunction(element2.text);
             }
             element2.selected = element.selected;
         }
     }
     else
     {
         element.selected = !element.selected;
         if (element.selected)
         {
             ProfilerDriver.BeginInstrumentFunction(element.text);
         }
         else
         {
             ProfilerDriver.EndInstrumentFunction(element.text);
         }
     }
     this.UpdateAllCheckbox();
 }
Exemple #2
0
        void ProfilerInstrumentationPopupCallback(PopupList.ListElement element)
        {
            if (element == m_AllCheckbox)
            {
                element.selected = !element.selected;
                foreach (var child in m_FunctionsListInputData.m_ListElements)
                {
                    if (element.selected)
                    {
                        ProfilerDriver.BeginInstrumentFunction(child.text);
                    }
                    else
                    {
                        ProfilerDriver.EndInstrumentFunction(child.text);
                    }
                    child.selected = element.selected;
                }
            }
            else
            {
                element.selected = !element.selected;
                if (element.selected)
                {
                    ProfilerDriver.BeginInstrumentFunction(element.text);
                }
                else
                {
                    ProfilerDriver.EndInstrumentFunction(element.text);
                }
            }

            UpdateAllCheckbox();
        }
Exemple #3
0
 private void ProfilerInstrumentationPopupCallback(PopupList.ListElement element)
 {
     if (element == this.m_AllCheckbox)
     {
         element.selected = !element.selected;
         using (List <PopupList.ListElement> .Enumerator enumerator = this.m_FunctionsListInputData.m_ListElements.GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 PopupList.ListElement current = enumerator.Current;
                 if (element.selected)
                 {
                     ProfilerDriver.BeginInstrumentFunction(current.text);
                 }
                 else
                 {
                     ProfilerDriver.EndInstrumentFunction(current.text);
                 }
                 current.selected = element.selected;
             }
         }
     }
     else
     {
         element.selected = !element.selected;
         if (element.selected)
         {
             ProfilerDriver.BeginInstrumentFunction(element.text);
         }
         else
         {
             ProfilerDriver.EndInstrumentFunction(element.text);
         }
     }
     this.UpdateAllCheckbox();
 }