[Profiler] Add heuristic to rank events base on computed metrics (#80094)
Test Plan:
Add test in test_profiler.py to check idle time computation.
To test the heuristic, we use serialized real world data stored in test_profiler_utils_golden.py to ensure a run to run stable test.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/80094
Approved by: https://github.com/robieta