private void DrawMemoryToolbar()
{
EditorGUILayout.BeginHorizontal(EditorStyles.toolbar, new GUILayoutOption[0]);
GUILayoutOption[] options = new GUILayoutOption[] { GUILayout.Width(70f) };
this.m_ShowDetailedMemoryPane = (ProfilerMemoryView) EditorGUILayout.EnumPopup(this.m_ShowDetailedMemoryPane, EditorStyles.toolbarDropDown, options);
GUILayout.Space(5f);
if (this.m_ShowDetailedMemoryPane == ProfilerMemoryView.Detailed)
{
if (GUILayout.Button("Take Sample: " + this.m_AttachProfilerUI.GetConnectedProfiler(), EditorStyles.toolbarButton, new GUILayoutOption[0]))
{
this.RefreshMemoryData();
}
this.m_GatherObjectReferences = GUILayout.Toggle(this.m_GatherObjectReferences, ms_Styles.gatherObjectReferences, EditorStyles.toolbarButton, new GUILayoutOption[0]);
if (this.m_AttachProfilerUI.IsEditor())
{
GUILayout.Label("Memory usage in editor is not as it would be in a player", EditorStyles.toolbarButton, new GUILayoutOption[0]);
}
}
GUILayout.FlexibleSpace();
EditorGUILayout.EndHorizontal();
}