PR #10685: [ROCM] GPU profiling code refactor - seperarted rocm event tracer and…
PR #10685: [ROCM] GPU profiling code refactor - seperarted rocm event tracer and…

Imported from GitHub PR https://github.com/openxla/xla/pull/10685

rocm profiler code refactored, Separated tracing and event collecting into rocm tracer (rocm_tracer.cc/h) and event collector (rocm_collector.cc/h).
Copybara import of the project:

--
9ada3c5629c208de530cf88beb934f401c8d99be by zahiqbal <zahid.iqbal@amd.com>:

[ROCM] GPU profiling code refactor - seperarted rocm event tracer and event collector.

Merging this change closes #10685

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/10685 from ROCm:ci_rocm_profiler_code_refactor 9ada3c5629c208de530cf88beb934f401c8d99be
