提交 14e30680 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!297 Adapt AICPU data modification

Merge pull request !297 from chenchao99/profiler_analyser
...@@ -262,9 +262,8 @@ class AicpuAnalyser(BaseAnalyser): ...@@ -262,9 +262,8 @@ class AicpuAnalyser(BaseAnalyser):
Raises: Raises:
ProfilerPathErrorException: If the profiling dir is invalid. ProfilerPathErrorException: If the profiling dir is invalid.
""" """
_col_names = ['serial_number', 'op_name', 'total_time', 'dispatch_time', _col_names = ['serial_number', 'op_type', 'total_time', 'dispatch_time',
'RunV2_start', 'compute_start', 'memcpy_start', 'memcpy_end', 'run_start', 'run_end']
'RunV2_end']
_file_name_aicpu_time = 'aicpu_intermediate_{}.csv' _file_name_aicpu_time = 'aicpu_intermediate_{}.csv'
def _load(self): def _load(self):
...@@ -306,4 +305,4 @@ class AicpuAnalyser(BaseAnalyser): ...@@ -306,4 +305,4 @@ class AicpuAnalyser(BaseAnalyser):
list[Union[str, float]], the converted data. list[Union[str, float]], the converted data.
""" """
return [int(row[0]), row[1], float(row[2]), float(row[3]), int(row[4]), return [int(row[0]), row[1], float(row[2]), float(row[3]), int(row[4]),
int(row[5]), int(row[6]), int(row[7]), int(row[8])] int(row[5])]
...@@ -33,9 +33,8 @@ class Integrator: ...@@ -33,9 +33,8 @@ class Integrator:
_header_aicore_type = ['op_type', 'execution_time', 'execution_frequency', _header_aicore_type = ['op_type', 'execution_time', 'execution_frequency',
'percent'] 'percent']
_header_aicore_detail = ['full_op_name', 'execution_time'] _header_aicore_detail = ['full_op_name', 'execution_time']
_header_aicpu = ['serial_number', 'op_name', 'total_time', 'dispatch_time', _header_aicpu = ['serial_number', 'op_type', 'total_time', 'dispatch_time',
'RunV2_start', 'compute_start', 'memcpy_start', 'run_start', 'run_end']
'memcpy_end', 'RunV2_end']
def __init__(self, profiling_dir, device_id): def __init__(self, profiling_dir, device_id):
self._profiling_dir = profiling_dir self._profiling_dir = profiling_dir
......
...@@ -25,8 +25,8 @@ from mindinsight.profiler.common.log import logger as log ...@@ -25,8 +25,8 @@ from mindinsight.profiler.common.log import logger as log
AICORE_TYPE_COL = ["op_type", "execution_time", "execution_frequency", "precent"] AICORE_TYPE_COL = ["op_type", "execution_time", "execution_frequency", "precent"]
AICORE_DETAIL_COL = ["op_name", "op_type", "execution_time", "subgraph", "full_op_name"] AICORE_DETAIL_COL = ["op_name", "op_type", "execution_time", "subgraph", "full_op_name"]
AICPU_COL = ["serial_number", "op_name", "total_time", "dispatch_time", "RunV2_start", AICPU_COL = ["serial_number", "op_type", "total_time", "dispatch_time", "run_start",
"compute_start", "memcpy_start", "memcpy_end", "RunV2_end"] "run_end"]
MINDDATA_PIPELINE_COL = [ MINDDATA_PIPELINE_COL = [
'op_id', 'op_type', 'num_workers', 'output_queue_average_size', 'op_id', 'op_type', 'num_workers', 'output_queue_average_size',
'output_queue_length', 'output_queue_usage_rate', 'sample_interval', 'output_queue_length', 'output_queue_usage_rate', 'sample_interval',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册