[rocprofiler-compute] Add database output format to analyze mode (#748)

Analysis data dump

* Add `--output-format` and `--output-name` option to analyze mode

* Remove `--output` and `-save-dfs` option to analyze mode

* Add documentation on `rocpd` output format and analysis database file

* Create sqlite3 database using object relation mapping (ORM) provided
  by sqlalchemy library

* Fix metrics config to remove metrics marked as `null`, fix `Unit` header, add
  missing `title`

* Add test cases to ensure analysis data dump work
Esse commit está contido em:
vedithal-amd
2025-08-26 14:15:05 -04:00
commit de GitHub
commit 323d06c79c
41 arquivos alterados com 1130 adições e 117 exclusões
@@ -137,6 +137,8 @@ class RocProfCompute:
self.__analyze_mode = "web_ui"
elif self.__args.tui:
self.__analyze_mode = "tui"
elif self.__args.output_format == "db":
self.__analyze_mode = "db"
else:
self.__analyze_mode = "cli"
return
@@ -447,6 +449,10 @@ class RocProfCompute:
run_tui(self.__args, self.__supported_archs)
return
elif self.__analyze_mode == "db":
from rocprof_compute_analyze.analysis_db import db_analysis
analyzer = db_analysis(self.__args, self.__supported_archs)
else:
console_error("Unsupported analysis mode -> %s" % self.__analyze_mode)