What I am thinking of is :
I am currently trying to code efficient pathfinding system, and as I am changing mathematical operations, trying out various loops and approaches - all I can measure are framedrop and small freezes. I wish to know how much each line of code is contributing to this freeze, so I could optimize it better. Instead I have to rely on subjective duration of freeze.
I remove one needless boolean condition - freeze is slightly smaller. Or is it ? Was it in my head ? Should I try to search in arrays instead of in dictionaries ? Freeze seems to be shorter on arrays.. or is it..? You know what I mean :)
Did anyone come up with a way to objectively test optimization of code ? Or better - of single lines of code ??