[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
Αυτή η υποβολή περιλαμβάνεται σε:
vedithal-amd
2025-08-26 14:15:05 -04:00
υποβλήθηκε από GitHub
γονέας 09cfa97156
υποβολή 323d06c79c
41 αρχεία άλλαξαν με 1130 προσθήκες και 117 διαγραφές
@@ -114,6 +114,8 @@ supported_call = {
"CONCAT": "to_concat",
}
PC_SAMPLING_NOT_ISSUE_PREFIX = "ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_"
# ------------------------------------------------------------------------------
@@ -1283,9 +1285,7 @@ def search_pc_sampling_record(records):
)
)
rocp_inst_not_issued_prefix_len = len(
"ROCPROFILER_PC_SAMPLING_INSTRUCTION_NOT_ISSUED_REASON_"
)
rocp_inst_not_issued_prefix_len = len(PC_SAMPLING_NOT_ISSUE_PREFIX)
# Populate grouped_data
for i, item in enumerate(records):