private void Awake()
{
if (Profiler.supported)
{
this.m_Recording = SessionState.GetBool("ProfilerEnabled", true);
Profiler.enabled = this.m_Recording;
this.m_SelectedMemRecordMode = ProfilerDriver.memoryRecordMode;
}
}