I am on Unity 5.6 as well. Go to Window > Profiler, select the CPU Usage and click Timeline. Then you can see there is a High Detail button.
I want to find the reference document about namespace UnityEditor.UnityEditorIneternal. There are other classes such as ProfilerDriver to control the profiler. But I can not find such document.
UnityEditor.UnityEditorInternal namespace is not exposed and cannot be scripted (I’ve recently been trying this to script some NavAI UI stuff into my own editor scripts).
Are you trying to enable high detail during execution when something specific occurs?
Thank you for your reply. I am writing code to count the call stack time per frame at runtime. They are showed below in the profiler.
But in the default setting, the two item [Alloc] and [Dealloc] won’t be recorded, so I have to enable High Detail mode. Then I can get the data I want.