Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
c7cb5e0c
M
mindinsight
项目概览
MindSpore
/
mindinsight
通知
7
Star
3
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindinsight
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c7cb5e0c
编写于
5月 22, 2020
作者:
P
ph
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update profiler
上级
9e41cd5c
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
106 addition
and
31 deletion
+106
-31
mindinsight/ui/src/views/train-manage/model-traceback.vue
mindinsight/ui/src/views/train-manage/model-traceback.vue
+1
-1
mindinsight/ui/src/views/train-manage/profiler.vue
mindinsight/ui/src/views/train-manage/profiler.vue
+105
-30
未找到文件。
mindinsight/ui/src/views/train-manage/model-traceback.vue
浏览文件 @
c7cb5e0c
...
...
@@ -81,7 +81,7 @@ limitations under the License.
type=
"primary"
size=
"mini"
plain
v-if=
"(!noData&&
echart.allData
.length) ||
v-if=
"(!noData&&
basearr
.length) ||
(noData && summaryDirList && !summaryDirList.length)"
>
{{
$t
(
'
modelTraceback.showAllData
'
)
}}
</el-button>
</div>
...
...
mindinsight/ui/src/views/train-manage/profiler.vue
浏览文件 @
c7cb5e0c
...
...
@@ -209,7 +209,6 @@
width=
"50%"
:close-on-click-modal=
"false"
class=
"details-data-list"
>
<div
class=
"details-data-title"
>
{{ detailsDataTitle }}
</div>
<el-table
:data=
"detailsDataList"
row-key=
"id"
lazy
...
...
@@ -240,25 +239,25 @@ export default {
data
()
{
return
{
apiType
:
'
core
'
,
currentCard
:
{
value
:
''
,
option
:
[]},
currentCard
:
{
value
:
''
,
option
:
[]},
// current device
cpuCharts
:
{
type
:
1
,
id
:
'
cpu-echarts
'
,
chartDom
:
null
,
data
:
[],
},
},
// ai cpu chart
coreCharts
:
{
type
:
0
,
id
:
'
core-echarts
'
,
chartDom
:
null
,
data
:
[],
},
statisticType
:
0
,
searchByTypeInput
:
''
,
searchByNameInput
:
''
,
searchByCPUNameInput
:
''
,
opTypeCol
:
[],
opTypeList
:
[],
},
// ai core chart
statisticType
:
0
,
// ai core table statistic type
searchByTypeInput
:
''
,
// search by ai core type name
searchByNameInput
:
''
,
// search by ai core detail name
searchByCPUNameInput
:
''
,
// search by ai cpu name
opTypeCol
:
[],
// table headers list of operator type
opTypeList
:
[],
// table list of operator type
opCpuList
:
{
opDetailCol
:
[],
opDetailList
:
[],
...
...
@@ -272,8 +271,7 @@ export default {
name
:
'
total_time
'
,
type
:
'
descending
'
,
},
},
opAllDetailCol
:
[],
},
// table data of operator cpu
opAllTypeList
:
{
opDetailCol
:
[],
opDetailList
:
[],
...
...
@@ -284,18 +282,17 @@ export default {
},
op_filter_condition
:
{},
op_sort_condition
:
{},
},
detailsDataTitle
:
''
,
rowName
:
this
.
$t
(
'
dataTraceback.details
'
),
detailsDataList
:
[],
detailsDialogVisible
:
false
,
profile_dir
:
''
,
train_id
:
''
,
op_filter_condition
:
{},
},
// table data of all operator details
rowName
:
this
.
$t
(
'
dataTraceback.details
'
),
// dialog title
detailsDataList
:
[],
// dialog table data
detailsDialogVisible
:
false
,
// show dialog
profile_dir
:
''
,
// profile directory
train_id
:
''
,
// train id
op_filter_condition
:
{},
// operator type filter
op_sort_condition
:
{
name
:
'
execution_time
'
,
type
:
'
descending
'
,
},
},
// operator type filter
initOver
:
false
,
objectType
:
'
object
'
,
};
...
...
@@ -308,16 +305,22 @@ export default {
init
()
{
this
.
getDeviceList
();
},
/**
* Current device change
*/
cardChange
()
{
this
.
clearCpuData
();
this
.
clearCoreData
();
if
(
this
.
apiType
===
'
core
'
)
{
this
.
statisticType
=
0
;
this
.
clearCoreData
();
this
.
getCoreTypeList
();
}
else
if
(
this
.
apiType
===
'
cpu
'
)
{
this
.
clearCpuData
();
this
.
getCpuList
(
true
);
}
},
/**
* clear cpu data
*/
clearCpuData
()
{
this
.
searchByCPUNameInput
=
''
;
this
.
opCpuList
=
{
...
...
@@ -335,6 +338,9 @@ export default {
},
};
},
/**
* clear core data
*/
clearCoreData
()
{
this
.
searchByTypeInput
=
''
;
this
.
searchByNameInput
=
''
;
...
...
@@ -353,6 +359,9 @@ export default {
op_sort_condition
:
{},
};
},
/**
* get device list
*/
getDeviceList
()
{
const
params
=
{
profile
:
this
.
profile_dir
,
...
...
@@ -381,6 +390,9 @@ export default {
this
.
initOver
=
true
;
});
},
/**
* get core list
*/
getCoreTypeList
()
{
const
params
=
{};
params
.
params
=
{
...
...
@@ -461,6 +473,10 @@ export default {
this
.
initOver
=
true
;
});
},
/**
* get core detail list
* @param {Object} row type row
*/
getCoreDetailList
(
row
)
{
const
params
=
{};
params
.
params
=
{
...
...
@@ -483,6 +499,9 @@ export default {
})
.
catch
(()
=>
{});
},
/**
* get cpu list
*/
getCpuList
()
{
const
params
=
{};
params
.
params
=
{
...
...
@@ -529,14 +548,27 @@ export default {
this
.
initOver
=
true
;
});
},
/**
* operator detail list page change
* @param {Object} row table cell
* @param {Number} pageIndex current page
*/
opDetailPageChange
(
row
,
pageIndex
)
{
row
.
opDetailPage
.
offset
=
pageIndex
-
1
;
this
.
getCoreDetailList
(
row
);
},
/**
* cpu list page change
* @param {Object} row table cell
* @param {Number} pageIndex current page
*/
opCpuPageChange
(
row
,
pageIndex
)
{
row
.
opDetailPage
.
offset
=
pageIndex
-
1
;
this
.
getCpuList
();
},
/**
* get core list by search
*/
searchOpCoreList
()
{
if
(
this
.
statisticType
)
{
this
.
opAllTypeList
.
op_filter_condition
=
{};
...
...
@@ -560,6 +592,9 @@ export default {
this
.
getCoreTypeList
();
}
},
/**
* get cpu list by search
*/
searchOpCpuList
()
{
this
.
opCpuList
.
op_filter_condition
=
{};
if
(
this
.
searchByCPUNameInput
)
{
...
...
@@ -571,6 +606,11 @@ export default {
}
this
.
getCpuList
();
},
/**
* core detail sort
* @param {Object} row table cell
* @param {Object} column table cell
*/
coreDetailSortChange
(
row
,
column
)
{
row
.
op_sort_condition
=
{
name
:
column
.
prop
,
...
...
@@ -579,6 +619,11 @@ export default {
row
.
opDetailPage
.
offset
=
0
;
this
.
getCoreDetailList
(
row
);
},
/**
* cpu detail sort
* @param {Object} row table cell
* @param {Object} column table cell
*/
cpuDetailSortChange
(
row
,
column
)
{
row
.
op_sort_condition
=
{
name
:
column
.
prop
,
...
...
@@ -587,6 +632,11 @@ export default {
row
.
opDetailPage
.
offset
=
0
;
this
.
getCpuList
();
},
/**
* format detail data
* @param {Object} row table cell
* @param {Object} detailsDataList table detail
*/
formatterDetailData
(
row
,
detailsDataList
)
{
row
.
opDetailList
=
[];
row
.
opDetailCol
=
detailsDataList
.
col_name
;
...
...
@@ -605,7 +655,11 @@ export default {
});
}
},
expandTypeItem
(
row
,
data
,
data2
)
{
/**
* expand core type table
* @param {Object} row table cell
*/
expandTypeItem
(
row
)
{
row
.
isExpanded
=
!
row
.
isExpanded
;
if
(
row
.
isExpanded
)
{
row
.
opDetailList
=
[];
...
...
@@ -615,17 +669,20 @@ export default {
this
.
getCoreDetailList
(
row
);
}
},
/**
* tab change
*/
tabChange
()
{
if
(
this
.
apiType
===
'
cpu
'
&&
!
this
.
cpuCharts
.
device_id
!==
this
.
currentCard
.
value
this
.
cpuCharts
.
device_id
!==
this
.
currentCard
.
value
)
{
this
.
initOver
=
false
;
this
.
clearCpuData
();
this
.
getCpuList
();
}
else
if
(
this
.
apiType
===
'
core
'
&&
!
this
.
coreCharts
.
device_id
!==
this
.
currentCard
.
value
this
.
coreCharts
.
device_id
!==
this
.
currentCard
.
value
)
{
this
.
initOver
=
false
;
this
.
clearCoreData
();
...
...
@@ -635,17 +692,30 @@ export default {
this
.
resizeCallback
();
});
},
/**
* core table type change
*/
coreTableChange
()
{
if
(
this
.
statisticType
===
1
&&
!
this
.
opAllTypeList
.
opDetailCol
.
length
)
{
this
.
getCoreDetailList
(
this
.
opAllTypeList
);
}
},
/**
* operator cpu chart change
*/
cpuChartChange
()
{
this
.
setOption
(
this
.
cpuCharts
);
},
/**
* operator core chart change
*/
coreChartChange
()
{
this
.
setOption
(
this
.
coreCharts
);
},
/**
* set chart option
* @param {Object} chart chart
*/
setOption
(
chart
)
{
const
option
=
{};
if
(
chart
.
type
===
0
)
{
...
...
@@ -743,7 +813,7 @@ export default {
data
:
[],
};
option
.
grid
=
{
left
:
3
0
,
left
:
5
0
,
top
:
20
,
right
:
0
,
bottom
:
30
,
...
...
@@ -777,6 +847,11 @@ export default {
chart
.
chartDom
.
resize
();
},
10
);
},
/**
* show operator info deteail
* @param {Object} cellData cell data
* @param {Object} column column
*/
showInfoDetail
(
cellData
,
column
)
{
if
(
column
.
property
!==
'
op_info
'
||
!
cellData
||
!
cellData
.
op_info
)
{
return
;
...
...
@@ -1041,9 +1116,9 @@ export default {
position
:
relative
;
}
td
:first-child::before
{
width
:
20
px
;
background
:
#f
ff
;
border-right
:
3px
solid
#7693e1
;
width
:
42
px
;
background
:
#f
0fdfd
;
border-right
:
2px
#00a5a7
solid
;
z-index
:
10
;
position
:
absolute
;
left
:
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录