Fixed file:line collection performance issues by using sys._getframe instead of inspect module