How To Read Profiler

So I was trying to figure out what specifically was causing lag spikes while playing my game in the editor (running from a build runs smooth) and this is what I got from the profiler and not quite sure how to read it:

The only thing that is clear is that Tilemap.Update is taking up most of the time when the lag spikes happen however I can’t understand the details. I expanded everything and I can’t figure out how it adds up to 98.98 because:

  1. If I assume the time ms is the amount of time to execute all calls, that does not even come close to 98.98.
  2. If I assume the time ms in the amount of time to execute each call, that goes way over 98.98.

Can anyone help me understand:

  1. Is time ms the amount of time for all calls or per call?
  2. Why Tilemap.Update is take 98.98 based on that profile?

I would recomend doing some neareer look into your script.
Use

and

to get what part in your function is taking so long.

@fffMalzbier Using BeingSample / EndSample gives me that same output (that still does not add up to me) just contained in a custom name block.