Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
87e03965
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看板
提交
87e03965
编写于
5月 28, 2020
作者:
W
WeiFeng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
profiler
上级
c4fc9bfb
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
18 deletion
+12
-18
mindinsight/ui/src/locales/zh-cn.json
mindinsight/ui/src/locales/zh-cn.json
+1
-1
mindinsight/ui/src/views/train-manage/profiler.vue
mindinsight/ui/src/views/train-manage/profiler.vue
+11
-17
未找到文件。
mindinsight/ui/src/locales/zh-cn.json
浏览文件 @
87e03965
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
"userDefinedLabel"
:
"User Defined"
,
"userDefinedLabel"
:
"User Defined"
,
"hyperLabel"
:
"Hyper"
,
"hyperLabel"
:
"Hyper"
,
"otherLabel"
:
"其他"
,
"otherLabel"
:
"其他"
,
"remarkTips"
:
"提示:终止服务后备注及tag
信息
将被清除"
"remarkTips"
:
"提示:终止服务后备注及tag将被清除"
},
},
"dataTraceback"
:
{
"dataTraceback"
:
{
"details"
:
"详情"
,
"details"
:
"详情"
,
...
...
mindinsight/ui/src/views/train-manage/profiler.vue
浏览文件 @
87e03965
...
@@ -61,12 +61,10 @@
...
@@ -61,12 +61,10 @@
<div
class=
"cl-search-box"
>
<div
class=
"cl-search-box"
>
<el-input
v-model=
"searchByTypeInput"
<el-input
v-model=
"searchByTypeInput"
v-if=
"statisticType === 0"
v-if=
"statisticType === 0"
suffix-icon=
"el-icon-search"
:placeholder=
"$t('profiler.searchByType')"
:placeholder=
"$t('profiler.searchByType')"
@
keyup.enter.native=
"searchOpCoreList()"
></el-input>
@
keyup.enter.native=
"searchOpCoreList()"
></el-input>
<el-input
v-model=
"searchByNameInput"
<el-input
v-model=
"searchByNameInput"
v-if=
"statisticType === 1"
v-if=
"statisticType === 1"
suffix-icon=
"el-icon-search"
:placeholder=
"$t('profiler.searchByName')"
:placeholder=
"$t('profiler.searchByName')"
@
keyup.enter.native=
"searchOpCoreList()"
></el-input>
@
keyup.enter.native=
"searchOpCoreList()"
></el-input>
</div>
</div>
...
@@ -90,6 +88,8 @@
...
@@ -90,6 +88,8 @@
:property=
"ele"
:property=
"ele"
:key=
"key"
:key=
"key"
:sortable=
"ele === 'op_info' ? false : 'custom'"
:sortable=
"ele === 'op_info' ? false : 'custom'"
:width=
"(ele==='execution_time'|| ele==='subgraph' ||
ele==='op_name'|| ele==='op_type')?'220':''"
show-overflow-tooltip
show-overflow-tooltip
:label=
"ele"
>
:label=
"ele"
>
</el-table-column>
</el-table-column>
...
@@ -124,6 +124,8 @@
...
@@ -124,6 +124,8 @@
:key=
"$index"
:key=
"$index"
:label=
"item"
:label=
"item"
:sortable=
"item === 'op_info' ? false : 'custom'"
:sortable=
"item === 'op_info' ? false : 'custom'"
:width=
"(item==='execution_time'|| item==='subgraph' ||
item==='op_name'|| item==='op_type')?'220':''"
show-overflow-tooltip
>
show-overflow-tooltip
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -168,7 +170,6 @@
...
@@ -168,7 +170,6 @@
</span>
</span>
<div
class=
"cl-search-box"
>
<div
class=
"cl-search-box"
>
<el-input
v-model=
"searchByCPUNameInput"
<el-input
v-model=
"searchByCPUNameInput"
suffix-icon=
"el-icon-search"
:placeholder=
"$t('profiler.searchByName')"
:placeholder=
"$t('profiler.searchByName')"
@
keyup.enter.native=
"searchOpCpuList()"
></el-input>
@
keyup.enter.native=
"searchOpCpuList()"
></el-input>
</div>
</div>
...
@@ -814,7 +815,8 @@ export default {
...
@@ -814,7 +815,8 @@ export default {
option
.
xAxis
=
{
option
.
xAxis
=
{
type
:
'
category
'
,
type
:
'
category
'
,
axisLabel
:
{
axisLabel
:
{
interval
:
1
,
interval
:
0
,
rotate
:
-
30
,
},
},
data
:
[],
data
:
[],
};
};
...
@@ -822,7 +824,7 @@ export default {
...
@@ -822,7 +824,7 @@ export default {
left
:
50
,
left
:
50
,
top
:
20
,
top
:
20
,
right
:
0
,
right
:
0
,
bottom
:
3
0
,
bottom
:
5
0
,
};
};
option
.
yAxis
=
{
option
.
yAxis
=
{
type
:
'
value
'
,
type
:
'
value
'
,
...
@@ -925,7 +927,7 @@ export default {
...
@@ -925,7 +927,7 @@ export default {
const
item
=
{};
const
item
=
{};
item
.
key
=
k
;
item
.
key
=
k
;
item
.
value
=
dataObj
[
key
][
k
];
item
.
value
=
dataObj
[
key
][
k
];
item
.
id
=
(
index
+
1
)
*
10
+
1
+
j
;
item
.
id
=
item
.
key
+
Math
.
random
()
;
tempData
.
children
.
push
(
item
);
tempData
.
children
.
push
(
item
);
});
});
}
}
...
@@ -955,20 +957,12 @@ export default {
...
@@ -955,20 +957,12 @@ export default {
},
},
},
},
mounted
()
{
mounted
()
{
if
(
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
dir
&&
this
.
$route
.
query
.
id
)
{
this
.
$route
.
query
&&
this
.
$route
.
query
.
dir
&&
this
.
$route
.
query
.
id
)
{
this
.
profile_dir
=
this
.
$route
.
query
.
dir
;
this
.
profile_dir
=
this
.
$route
.
query
.
dir
;
this
.
train_id
=
this
.
$route
.
query
.
id
;
this
.
train_id
=
this
.
$route
.
query
.
id
;
document
.
title
=
document
.
title
=
`
${
decodeURIComponent
(
this
.
train_id
)}
-
${
this
.
$t
(
'
profiler.titleText
'
)}
-MindInsight`
;
decodeURIComponent
(
this
.
train_id
)
+
'
-
'
+
this
.
$t
(
'
profiler.titleText
'
)
+
'
-MindInsight
'
;
}
else
{
}
else
{
document
.
title
=
this
.
$t
(
'
profiler.titleText
'
)
+
'
-MindInsight
'
;
document
.
title
=
`
${
this
.
$t
(
'
profiler.titleText
'
)}
-MindInsight`
;
}
}
this
.
init
();
this
.
init
();
window
.
addEventListener
(
'
resize
'
,
this
.
resizeCallback
,
false
);
window
.
addEventListener
(
'
resize
'
,
this
.
resizeCallback
,
false
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录