Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
7891976d
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看板
提交
7891976d
编写于
8月 25, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
8月 25, 2020
浏览文件
操作
浏览文件
下载
差异文件
!569 UI change dashboard jumping mode and default auto fresh time
Merge pull request !569 from 潘慧/r0.7
上级
c891007c
754dd37a
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
104 addition
and
20 deletion
+104
-20
mindinsight/ui/src/locales/en-us.json
mindinsight/ui/src/locales/en-us.json
+2
-1
mindinsight/ui/src/locales/zh-cn.json
mindinsight/ui/src/locales/zh-cn.json
+2
-1
mindinsight/ui/src/store.js
mindinsight/ui/src/store.js
+1
-1
mindinsight/ui/src/views/profiling-gpu/profiling.vue
mindinsight/ui/src/views/profiling-gpu/profiling.vue
+2
-1
mindinsight/ui/src/views/profiling/profiling.vue
mindinsight/ui/src/views/profiling/profiling.vue
+2
-1
mindinsight/ui/src/views/train-manage/compare-plate.vue
mindinsight/ui/src/views/train-manage/compare-plate.vue
+1
-3
mindinsight/ui/src/views/train-manage/summary-manage.vue
mindinsight/ui/src/views/train-manage/summary-manage.vue
+94
-12
未找到文件。
mindinsight/ui/src/locales/en-us.json
浏览文件 @
7891976d
...
...
@@ -49,7 +49,8 @@
"dataTraceback"
:
"Dataset Lineage"
,
"comparePlate"
:
"Comparison Dashboard"
,
"disableProfilerTip"
:
"Failed to view profiling because no profiler log is available."
,
"hardwareVisual"
:
"Hardware Resources"
"hardwareVisual"
:
"Hardware Resources"
,
"openNewTab"
:
"Open Link in New Tab"
},
"modelTraceback"
:
{
"summaryPath"
:
"Summary Path"
,
...
...
mindinsight/ui/src/locales/zh-cn.json
浏览文件 @
7891976d
...
...
@@ -49,7 +49,8 @@
"dataTraceback"
:
"数据溯源"
,
"comparePlate"
:
"对比看板"
,
"disableProfilerTip"
:
"无profiler日志,无法查看性能分析"
,
"hardwareVisual"
:
"硬件资源"
"hardwareVisual"
:
"硬件资源"
,
"openNewTab"
:
"打开新页签"
},
"modelTraceback"
:
{
"summaryPath"
:
"训练日志路径"
,
...
...
mindinsight/ui/src/store.js
浏览文件 @
7891976d
...
...
@@ -29,7 +29,7 @@ export default new Vuex.Store({
// reload time
timeReloadValue
:
localStorage
.
timeReloadValue
?
localStorage
.
timeReloadValue
:
3
,
:
10
,
// Scheduled hardware reload flag
isHardwareTimeReload
:
localStorage
.
isHardwareTimeReload
===
'
false
'
?
false
:
true
,
// hardware reload time
...
...
mindinsight/ui/src/views/profiling-gpu/profiling.vue
浏览文件 @
7891976d
...
...
@@ -65,7 +65,7 @@ import RequestService from '../../services/request-service';
export
default
{
data
()
{
return
{
summaryPath
:
this
.
$route
.
query
.
summaryPath
,
summaryPath
:
''
,
tipsArrayList
:
[
'
step_trace-iter_interval
'
,
'
minddata_pipeline-general
'
,
...
...
@@ -100,6 +100,7 @@ export default {
this
.
curDashboardInfo
.
query
.
id
=
this
.
$route
.
query
.
id
;
this
.
curDashboardInfo
.
query
.
dir
=
this
.
$route
.
query
.
dir
;
this
.
curDashboardInfo
.
query
.
path
=
this
.
$route
.
query
.
path
;
this
.
summaryPath
=
decodeURIComponent
(
this
.
$route
.
query
.
id
);
this
.
getDeviceList
();
}
else
{
this
.
curDashboardInfo
.
query
.
trainingJobId
=
''
;
...
...
mindinsight/ui/src/views/profiling/profiling.vue
浏览文件 @
7891976d
...
...
@@ -65,7 +65,7 @@ import RequestService from '../../services/request-service';
export
default
{
data
()
{
return
{
summaryPath
:
this
.
$route
.
query
.
summaryPath
,
summaryPath
:
''
,
tipsArrayList
:
[
'
step_trace-iter_interval
'
,
'
minddata_pipeline-general
'
,
...
...
@@ -101,6 +101,7 @@ export default {
this
.
curDashboardInfo
.
query
.
id
=
this
.
$route
.
query
.
id
;
this
.
curDashboardInfo
.
query
.
dir
=
this
.
$route
.
query
.
dir
;
this
.
curDashboardInfo
.
query
.
path
=
this
.
$route
.
query
.
path
;
this
.
summaryPath
=
decodeURIComponent
(
this
.
$route
.
query
.
id
);
this
.
getDeviceList
();
}
else
{
this
.
curDashboardInfo
.
query
.
trainingJobId
=
''
;
...
...
mindinsight/ui/src/views/train-manage/compare-plate.vue
浏览文件 @
7891976d
...
...
@@ -1208,9 +1208,7 @@ export default {
this
.
$store
.
commit
(
'
setIsReload
'
,
false
);
this
.
isReloading
=
false
;
}
if
(
error
.
response
&&
error
.
response
.
data
)
{
this
.
clearAllData
();
}
this
.
clearAllData
();
},
/**
...
...
mindinsight/ui/src/views/train-manage/summary-manage.vue
浏览文件 @
7891976d
...
...
@@ -69,14 +69,15 @@ limitations under the License.
:label=
"$t('summaryManage.operation')"
width=
"240"
>
<template
slot-scope=
"scope"
>
<
el-button
type=
"text
"
@
click.stop=
"goToTrainDashboard(scope.row)"
>
{{
$t
(
'
summaryManage.viewDashboard
'
)
}}
</el-button
>
<el-button
type=
"text"
class=
"
operate-btn"
<
span
class=
"menu-item
"
@
contextmenu.prevent=
"rightClick(scope.row, $event, 0)"
@
click.stop=
"goToTrainDashboard(scope.row)"
>
{{
$t
(
'
summaryManage.viewDashboard
'
)
}}
</span>
<span
class=
"menu-item
operate-btn"
v-if=
"scope.row.viewProfiler"
@
contextmenu.prevent=
"rightClick(scope.row, $event, 1)"
@
click.stop=
"goToProfiler(scope.row)"
>
{{
$t
(
'
summaryManage.viewProfiler
'
)
}}
</
el-butto
n>
{{
$t
(
'
summaryManage.viewProfiler
'
)
}}
</
spa
n>
<el-button
type=
"text"
class=
"operate-btn"
disabled
...
...
@@ -99,6 +100,13 @@ limitations under the License.
</el-pagination>
</div>
</div>
<div
id=
"contextMenu"
v-if=
"contextMenu.show"
:style=
"{left: contextMenu.left, top: contextMenu.top}"
>
<ul>
<li
@
click=
"doRightClick()"
>
{{$t('summaryManage.openNewTab')}}
</li>
</ul>
</div>
</div>
</template>
...
...
@@ -117,11 +125,20 @@ export default {
total
:
0
,
layout
:
'
total, prev, pager, next, jumper
'
,
},
contextMenu
:
{
show
:
false
,
left
:
''
,
top
:
''
,
data
:
null
,
type
:
0
,
},
};
},
computed
:
{},
watch
:
{},
destroyed
()
{},
destroyed
()
{
document
.
onclick
=
null
;
},
activated
()
{},
mounted
()
{
document
.
title
=
`
${
this
.
$t
(
'
summaryManage.summaryList
'
)}
-MindInsight`
;
...
...
@@ -132,6 +149,10 @@ export default {
methods
:
{
init
()
{
document
.
onclick
=
()
=>
{
this
.
contextMenu
.
show
=
false
;
};
const
params
=
{
limit
:
this
.
pagination
.
pageSize
,
offset
:
this
.
pagination
.
currentPage
-
1
,
...
...
@@ -187,34 +208,74 @@ export default {
* @param {Object} row select row
*/
goToTrainDashboard
(
row
)
{
this
.
contextMenu
.
show
=
false
;
const
trainId
=
encodeURIComponent
(
row
.
train_id
);
const
routeUrl
=
this
.
$router
.
resolve
({
this
.
$router
.
push
({
path
:
'
/train-manage/training-dashboard
'
,
query
:
{
id
:
trainId
},
});
window
.
open
(
routeUrl
.
href
,
'
_blank
'
);
},
/**
* go to Profiler
* @param {Object} row select row
*/
goToProfiler
(
row
)
{
this
.
contextMenu
.
show
=
false
;
const
profilerDir
=
encodeURIComponent
(
row
.
profiler_dir
);
const
trainId
=
encodeURIComponent
(
row
.
train_id
);
const
path
=
encodeURIComponent
(
row
.
relative_path
);
const
router
=
`/profiling
${
row
.
profiler_type
===
'
gpu
'
?
'
-gpu
'
:
''
}
`
;
const
routeUrl
=
this
.
$router
.
resolve
({
this
.
$router
.
push
({
path
:
router
,
query
:
{
dir
:
profilerDir
,
id
:
trainId
,
path
:
path
,
summaryPath
:
row
.
train_id
,
},
});
window
.
open
(
routeUrl
.
href
,
'
_blank
'
);
},
rightClick
(
row
,
event
,
type
)
{
this
.
contextMenu
.
data
=
row
;
this
.
contextMenu
.
type
=
type
;
this
.
contextMenu
.
left
=
event
.
x
+
'
px
'
;
this
.
contextMenu
.
top
=
event
.
y
+
'
px
'
;
this
.
contextMenu
.
show
=
true
;
},
doRightClick
(
key
)
{
const
row
=
this
.
contextMenu
.
data
;
if
(
!
row
)
{
return
;
}
if
(
this
.
contextMenu
.
type
)
{
this
.
contextMenu
.
show
=
false
;
const
profilerDir
=
encodeURIComponent
(
row
.
profiler_dir
);
const
trainId
=
encodeURIComponent
(
row
.
train_id
);
const
path
=
encodeURIComponent
(
row
.
relative_path
);
const
router
=
`/profiling
${
row
.
profiler_type
===
'
gpu
'
?
'
-gpu
'
:
''
}
`
;
const
routeUrl
=
this
.
$router
.
resolve
({
path
:
router
,
query
:
{
dir
:
profilerDir
,
id
:
trainId
,
path
:
path
,
},
});
window
.
open
(
routeUrl
.
href
,
'
_blank
'
);
}
else
{
this
.
contextMenu
.
show
=
false
;
const
trainId
=
encodeURIComponent
(
row
.
train_id
);
const
routeUrl
=
this
.
$router
.
resolve
({
path
:
'
/train-manage/training-dashboard
'
,
query
:
{
id
:
trainId
},
});
window
.
open
(
routeUrl
.
href
,
'
_blank
'
);
}
},
},
components
:
{},
...
...
@@ -282,5 +343,26 @@ export default {
.operate-btn
{
margin-left
:
20px
;
}
.menu-item
{
color
:
#00a5a7
;
cursor
:
pointer
;
}
#contextMenu
{
position
:
absolute
;
min-width
:
150px
;
border
:
1px
solid
#d4d4d4
;
ul
{
background-color
:
#f7faff
;
border-radius
:
2px
;
li
{
padding
:
5px
18px
;
cursor
:
pointer
;
&
:hover
{
background-color
:
rgb
(
167
,
167
,
167
);
color
:
white
;
}
}
}
}
}
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录