[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:
@@ -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)
|
||||
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário