ROCm / rocprofiler

ROC profiler library. Profiling with perf-counters and derived metrics.
https://rocm.docs.amd.com/projects/rocprofiler/en/latest/
Other
119 stars 45 forks source link

Change sorting so that it works with Python 3.x too #2

Closed rwvo closed 5 years ago

rwvo commented 5 years ago

Change sorting so that it not only works with Python 2.7, but with 3.x too. Without the modification, running with Python 3.x results in an error:

Traceback (most recent call last):
  File "/opt/rocm/bin/tblextr.py", line 120, in <module>
    ret = print_tbl(outfile)                         
  File "/opt/rocm/bin/tblextr.py", line 90, in print_tbl
    keys.sort(key=int)                                                          
AttributeError: 'dict_keys' object has no attribute 'sort'                   
eshcherb commented 5 years ago

LGTM to me