Debug tools?

I’m not to savy with some of the more advanced debugging tricks out there

but is there a way that i can measure how much processing is used from the start of a block of code to the end of a block of code

trying to figure out which chunks of my code are hitting my framerate

  1. use profiler

  2. use deep profiler with Profiler.BeginSample

  3. use System.Diagnostics.Stopwatch;

its first what i got in mind

Use Time.realtimeSinceStartup or the Stopwatch class.