Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
750385ad
M
mindinsight
项目概览
MindSpore
/
mindinsight
通知
8
Star
4
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看板
提交
750385ad
编写于
5月 21, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
5月 21, 2020
浏览文件
操作
浏览文件
下载
差异文件
!138 UI support Profiler(2nd commit)
Merge pull request !138 from 潘慧/master_ph2
上级
25c40b21
b43004e9
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
116 addition
and
14 deletion
+116
-14
mindinsight/ui/src/components/header.vue
mindinsight/ui/src/components/header.vue
+2
-0
mindinsight/ui/src/components/multiselectGroup.vue
mindinsight/ui/src/components/multiselectGroup.vue
+19
-4
mindinsight/ui/src/locales/zh-cn.json
mindinsight/ui/src/locales/zh-cn.json
+43
-6
mindinsight/ui/src/router.js
mindinsight/ui/src/router.js
+3
-0
mindinsight/ui/src/services/request-service.js
mindinsight/ui/src/services/request-service.js
+23
-0
mindinsight/ui/src/views/train-manage/summary-manage.vue
mindinsight/ui/src/views/train-manage/summary-manage.vue
+26
-4
未找到文件。
mindinsight/ui/src/components/header.vue
浏览文件 @
750385ad
...
@@ -161,6 +161,8 @@ export default {
...
@@ -161,6 +161,8 @@ export default {
}
else
{
}
else
{
return
'
/
'
+
str
[
1
];
return
'
/
'
+
str
[
1
];
}
}
}
else
if
(
this
.
$route
.
path
===
'
/profiler
'
)
{
return
'
/summary-manage
'
;
}
else
{
}
else
{
return
this
.
$route
.
path
;
return
this
.
$route
.
path
;
}
}
...
...
mindinsight/ui/src/components/multiselectGroup.vue
浏览文件 @
750385ad
...
@@ -48,7 +48,8 @@ limitations under the License.
...
@@ -48,7 +48,8 @@ limitations under the License.
popper-class=
"tooltip-show-content"
popper-class=
"tooltip-show-content"
:content=
"item.label"
:content=
"item.label"
placement=
"top"
>
placement=
"top"
>
<span
class=
"select-disable"
>
{{
item
.
label
}}
</span>
<span
class=
"select-disable"
><i
title=
"CACHING"
v-if=
"item.loading"
class=
"el-icon-loading"
></i>
{{
item
.
label
}}
</span>
</el-tooltip>
</el-tooltip>
</span>
</span>
</div>
</div>
...
@@ -78,7 +79,8 @@ limitations under the License.
...
@@ -78,7 +79,8 @@ limitations under the License.
popper-class=
"tooltip-show-content"
popper-class=
"tooltip-show-content"
:content=
"item.label"
:content=
"item.label"
placement=
"top"
>
placement=
"top"
>
<span
class=
"select-disable"
>
{{
item
.
label
}}
</span>
<span
class=
"select-disable"
>
>
<i
title=
"CACHING"
v-if=
"item.loading"
class=
"el-icon-loading"
></i>
{{
item
.
label
}}
</span>
</el-tooltip>
</el-tooltip>
</span>
</span>
</div>
</div>
...
@@ -412,6 +414,19 @@ export default {
...
@@ -412,6 +414,19 @@ export default {
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
text-align
:
left
;
text-align
:
left
;
position
:
relative
;
.loading-icon
{
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
text-align
:
center
;
background
:
rgba
(
255
,
255
,
255
,
0
.5
);
i
{
font-weight
:
bold
;
}
}
}
}
}
}
.item-disable
{
.item-disable
{
...
...
mindinsight/ui/src/locales/zh-cn.json
浏览文件 @
750385ad
...
@@ -8,7 +8,17 @@
...
@@ -8,7 +8,17 @@
"tagFilterPlaceHolder"
:
"请输入需要的标签(支持正则表达式)"
,
"tagFilterPlaceHolder"
:
"请输入需要的标签(支持正则表达式)"
,
"dataError"
:
"获取到的数据异常"
,
"dataError"
:
"获取到的数据异常"
,
"regIllegal"
:
"请输入正确的检索条件"
,
"regIllegal"
:
"请输入正确的检索条件"
,
"stayTuned"
:
"敬请期待"
"stayTuned"
:
"敬请期待"
,
"select"
:
"请选择"
,
"search"
:
"请搜索"
,
"enter"
:
"请输入"
,
"remark"
:
"备注"
,
"sure"
:
"确定"
,
"clear"
:
"清空"
,
"cancel"
:
"取消"
,
"selectAll"
:
"全选"
,
"deselectAll"
:
"取消全选"
},
},
"symbols"
:
{
"symbols"
:
{
"leftbracket"
:
"("
,
"leftbracket"
:
"("
,
...
@@ -31,7 +41,9 @@
...
@@ -31,7 +41,9 @@
"viewDashboard"
:
"训练看板"
,
"viewDashboard"
:
"训练看板"
,
"viewProfiler"
:
"性能分析"
,
"viewProfiler"
:
"性能分析"
,
"modelTraceback"
:
"模型溯源"
,
"modelTraceback"
:
"模型溯源"
,
"dataTraceback"
:
"数据溯源"
"dataTraceback"
:
"数据溯源"
,
"comparePlate"
:
"对比看板"
,
"disableProfilerTip"
:
"无profiler日志,无法查看性能分析"
},
},
"modelTraceback"
:
{
"modelTraceback"
:
{
"summaryPath"
:
"训练日志路径"
,
"summaryPath"
:
"训练日志路径"
,
...
@@ -51,7 +63,19 @@
...
@@ -51,7 +63,19 @@
"userDefined"
:
"自定义数据"
,
"userDefined"
:
"自定义数据"
,
"metric"
:
"度量指标"
,
"metric"
:
"度量指标"
,
"deviceNum"
:
"device数目"
,
"deviceNum"
:
"device数目"
,
"mixedItemMessage"
:
"该参数含有多种类型数据,无法筛选展示"
"mixedItemMessage"
:
"该参数含有多种类型数据,无法筛选展示"
,
"displayColumn"
:
"请选择展示列"
,
"hide"
:
"隐藏记录"
,
"unhide"
:
"取消隐藏"
,
"hideData"
:
"条数据"
,
"totalHide"
:
"本页共隐藏{n}条数据"
,
"mustExist"
:
"必选项"
,
"remarkValidation"
:
"备注为英文字母、数字、中文、下划线、中划线、点的组合,长度范围为[1,128]字符"
,
"changeSuccess"
:
"修改成功"
,
"metricLabel"
:
"Metric"
,
"userDefinedLabel"
:
"User Defined"
,
"hyperLabel"
:
"Hyper"
,
"otherLabel"
:
"其他"
},
},
"dataTraceback"
:
{
"dataTraceback"
:
{
"details"
:
"详情"
,
"details"
:
"详情"
,
...
@@ -93,7 +117,7 @@
...
@@ -93,7 +117,7 @@
"open"
:
"展开"
,
"open"
:
"展开"
,
"close"
:
"折叠"
,
"close"
:
"折叠"
,
"invalidData"
:
"存在无效数据"
,
"invalidData"
:
"存在无效数据"
,
"restore"
:
"还原"
"restore"
:
"还原"
},
},
"images"
:
{
"images"
:
{
...
@@ -160,9 +184,22 @@
...
@@ -160,9 +184,22 @@
"next"
:
"下一步"
,
"next"
:
"下一步"
,
"finish"
:
"完成"
"finish"
:
"完成"
},
},
"profiler"
:
{
"titleText"
:
"性能分析"
,
"currentCard"
:
"当前卡片"
,
"pie"
:
"饼图"
,
"bar"
:
"柱状图"
,
"operatorStatistics"
:
"算子统计"
,
"operatorTypeStatistics"
:
"算子类别统计"
,
"allOperator"
:
"全部"
,
"ClassificationOperator"
:
"分类"
,
"card"
:
"卡"
,
"searchByType"
:
"请输入算子类型搜索"
,
"searchByName"
:
"请输入算子名称搜索"
},
"components"
:
{
"components"
:
{
"summaryTitle"
:
"
run
选择"
,
"summaryTitle"
:
"
训练作业
选择"
,
"tagTitle"
:
"
tag
选择"
,
"tagTitle"
:
"
标签
选择"
,
"tagSelectTitle"
:
"标签选择"
,
"tagSelectTitle"
:
"标签选择"
,
"selectAll"
:
"全选"
,
"selectAll"
:
"全选"
,
"tagFilterPlaceHolder"
:
"请输入需要的标签(支持正则表达式)"
,
"tagFilterPlaceHolder"
:
"请输入需要的标签(支持正则表达式)"
,
...
...
mindinsight/ui/src/router.js
浏览文件 @
750385ad
...
@@ -67,6 +67,9 @@ export default new Router({
...
@@ -67,6 +67,9 @@ export default new Router({
component
:
()
=>
import
(
'
./views/train-manage/data-traceback.vue
'
),
component
:
()
=>
import
(
'
./views/train-manage/data-traceback.vue
'
),
},
},
{
{
path
:
'
/profiler
'
,
component
:
()
=>
import
(
'
./views/train-manage/profiler.vue
'
),
},
{
path
:
'
/compare-plate
'
,
path
:
'
/compare-plate
'
,
component
:
()
=>
import
(
'
./views/train-manage/compare-plate.vue
'
),
component
:
()
=>
import
(
'
./views/train-manage/compare-plate.vue
'
),
},
},
...
...
mindinsight/ui/src/services/request-service.js
浏览文件 @
750385ad
...
@@ -33,6 +33,15 @@ export default {
...
@@ -33,6 +33,15 @@ export default {
data
:
params
.
body
,
data
:
params
.
body
,
});
});
},
},
// API for model and data source tracing
putLineagesData
(
params
)
{
return
axios
({
method
:
'
put
'
,
url
:
'
/v1/mindinsight/lineagemgr/lineages?train_id=
'
+
params
.
train_id
,
data
:
params
.
body
,
});
},
// query summary list
// query summary list
querySummaryList
(
params
)
{
querySummaryList
(
params
)
{
...
@@ -158,4 +167,18 @@ export default {
...
@@ -158,4 +167,18 @@ export default {
params
:
params
,
params
:
params
,
});
});
},
},
getProfilerDeviceData
(
params
)
{
return
axios
({
method
:
'
get
'
,
url
:
'
/v1/mindinsight/profiler_device
'
,
params
:
params
,
});
},
getProfilerOpTypeList
(
params
)
{
return
axios
({
method
:
'
get
'
,
url
:
'
/v1/mindinsight/profiler_device
'
,
params
:
params
,
});
},
};
};
mindinsight/ui/src/views/train-manage/summary-manage.vue
浏览文件 @
750385ad
...
@@ -58,12 +58,15 @@ limitations under the License.
...
@@ -58,12 +58,15 @@ limitations under the License.
<!--operate -->
<!--operate -->
<el-table-column
prop=
"operate"
<el-table-column
prop=
"operate"
:label=
"$t('summaryManage.operation')"
:label=
"$t('summaryManage.operation')"
width=
"
17
0"
>
width=
"
22
0"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
<el-button
type=
"text"
@
click.stop=
"goToTrainDashboard(scope.row)"
>
class=
"cursor-type"
@
click.stop=
"goToTrainDashboard(scope.row)"
>
{{
$t
(
'
summaryManage.viewDashboard
'
)
}}
</el-button>
{{
$t
(
'
summaryManage.viewDashboard
'
)
}}
</el-button>
<el-button
type=
"text"
class=
"operate-btn"
v-if=
"scope.row.viewProfiler"
@
click.stop=
"goToProfiler(scope.row)"
>
{{
$t
(
'
summaryManage.viewProfiler
'
)
}}
</el-button>
<el-button
type=
"text"
class=
"operate-btn"
disabled
:title=
"$t('summaryManage.disableProfilerTip')"
v-if=
"!scope.row.viewProfiler"
>
{{
$t
(
'
summaryManage.viewProfiler
'
)
}}
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -135,6 +138,7 @@ export default {
...
@@ -135,6 +138,7 @@ export default {
i
.
relative_path
=
i
.
relative_path
?
i
.
relative_path
:
'
--
'
;
i
.
relative_path
=
i
.
relative_path
?
i
.
relative_path
:
'
--
'
;
i
.
create_time
=
i
.
create_time
?
i
.
create_time
:
'
--
'
;
i
.
create_time
=
i
.
create_time
?
i
.
create_time
:
'
--
'
;
i
.
update_time
=
i
.
update_time
?
i
.
update_time
:
'
--
'
;
i
.
update_time
=
i
.
update_time
?
i
.
update_time
:
'
--
'
;
i
.
viewProfiler
=
i
.
profiler_dir
&&
i
.
profiler_dir
.
length
;
});
});
this
.
currentFolder
=
res
.
data
.
name
?
res
.
data
.
name
:
'
--
'
;
this
.
currentFolder
=
res
.
data
.
name
?
res
.
data
.
name
:
'
--
'
;
this
.
pagination
.
total
=
res
.
data
.
total
;
this
.
pagination
.
total
=
res
.
data
.
total
;
...
@@ -170,6 +174,21 @@ export default {
...
@@ -170,6 +174,21 @@ export default {
});
});
window
.
open
(
routeUrl
.
href
,
'
_blank
'
);
window
.
open
(
routeUrl
.
href
,
'
_blank
'
);
},
},
/**
* go to Profiler
* @param {Object} row select row
*/
goToProfiler
(
row
)
{
const
profilerDir
=
encodeURIComponent
(
row
.
profier_dir
);
const
trainId
=
encodeURIComponent
(
row
.
train_id
);
this
.
$router
.
push
({
path
:
'
/profiler
'
,
query
:
{
dir
:
profilerDir
,
id
:
trainId
,
},
});
},
},
},
components
:
{},
components
:
{},
};
};
...
@@ -212,5 +231,8 @@ export default {
...
@@ -212,5 +231,8 @@ export default {
margin-top
:
16px
;
margin-top
:
16px
;
text-align
:
right
;
text-align
:
right
;
}
}
.operate-btn
{
margin-left
:
20px
;
}
}
}
</
style
>
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录