- Home /
Too many Profiler.BeginSample ??
I tried using deep profile on one of my scenes and the profile always stops with the error message above. If I don't use deep profile it works. I don't use Profiler.BeginSample or EndSample anywhere in my code, so it must be something internal. Anyone ever came across that one?
It always happens when I switch a bunch of objects (menu etc.) off and turn another bunch on.
Ok, it has nothing to do with switching objects on/off, it rather happens when I try to create an XmlSerializer. If I comment that out it works with deep profiling turned on. Any idea why that messes with the Profiler?
Wow, you must have a lot of OnGUI functions, Start functions and awake functions.
But what platform are you building for?
And what are your player settings?
This might not be the problem. The option fast but no exceptions can cause problems on the iphone.
Ok, it has nothing to do with switching objects on/off, it rather happens when I try to create an XmlSerializer. If I comment that out it works with deep profiling turned on. Any idea why that messes with the Profiler?
I am having this same issue. Turn Deep Profiling on but not using Profiler.Begin/End Sample and I get this error message???
Your answer
![](https://koobas.hobune.stream/wayback/20220613064925im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Device.Present or GFX.WaitForPresent 1 Answer
Editorloop spikes and FPS drops. 0 Answers
Non matching Profiler.EndSample 1 Answer
Android Device can't able to connect with Profiler 1 Answer
Bad Performance in Unity? 1 Answer