advanced-py-prof

advanced-py-prof is a script in CIMEROOT/CIME/Tools.

$ ./advanced-py-prof --help
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/cProfile.py", line 195, in <module>
    main()
  File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/cProfile.py", line 172, in main
    with io.open_code(progname) as fp:
         ^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'basename'