gh-138122: Move local imports to module level in sampling profiler (#143257)

15 files changed