private BeginInstrumentFunction ( 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(); }
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(); }
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(); }