Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
d73c66bd
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看板
提交
d73c66bd
编写于
6月 12, 2020
作者:
P
ph
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add profiling new page
上级
20c153de
变更
6
展开全部
显示空白变更内容
内联
并排
Showing
6 changed file
with
2832 addition
and
0 deletion
+2832
-0
mindinsight/ui/src/assets/images/collapse-left.svg
mindinsight/ui/src/assets/images/collapse-left.svg
+31
-0
mindinsight/ui/src/assets/images/collapse-right.svg
mindinsight/ui/src/assets/images/collapse-right.svg
+31
-0
mindinsight/ui/src/views/train-manage/operator.vue
mindinsight/ui/src/views/train-manage/operator.vue
+1164
-0
mindinsight/ui/src/views/train-manage/profiling-dashboard.vue
...insight/ui/src/views/train-manage/profiling-dashboard.vue
+738
-0
mindinsight/ui/src/views/train-manage/profiling.vue
mindinsight/ui/src/views/train-manage/profiling.vue
+208
-0
mindinsight/ui/src/views/train-manage/step-trace.vue
mindinsight/ui/src/views/train-manage/step-trace.vue
+660
-0
未找到文件。
mindinsight/ui/src/assets/images/collapse-left.svg
0 → 100644
浏览文件 @
d73c66bd
<?xml version="1.0" encoding="UTF-8"?>
<svg
width=
"32px"
height=
"96px"
viewBox=
"0 0 32 96"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<!-- Generator: Sketch 63.1 (92452) - https://sketch.com -->
<title>
编组 12
</title>
<desc>
Created with Sketch.
</desc>
<defs>
<filter
x=
"-166.7%"
y=
"-25.0%"
width=
"433.3%"
height=
"150.0%"
filterUnits=
"objectBoundingBox"
id=
"filter-1"
>
<feOffset
dx=
"0"
dy=
"0"
in=
"SourceAlpha"
result=
"shadowOffsetOuter1"
></feOffset>
<feGaussianBlur
stdDeviation=
"5"
in=
"shadowOffsetOuter1"
result=
"shadowBlurOuter1"
></feGaussianBlur>
<feColorMatrix
values=
"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"
type=
"matrix"
in=
"shadowBlurOuter1"
result=
"shadowMatrixOuter1"
></feColorMatrix>
<feMerge>
<feMergeNode
in=
"shadowMatrixOuter1"
></feMergeNode>
<feMergeNode
in=
"SourceGraphic"
></feMergeNode>
</feMerge>
</filter>
<polygon
id=
"path-2"
points=
"0 0 8 0 4 5"
></polygon>
</defs>
<g
id=
"智能小助手"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<g
id=
"3"
transform=
"translate(-461.000000, -525.000000)"
>
<g
id=
"编组-12"
filter=
"url(#filter-1)"
transform=
"translate(471.000000, 533.000000)"
>
<path
d=
"M-1.50990331e-14,0 L9.11107923,10.6295924 C10.9752941,12.8045097 12,15.5745537 12,18.4390889 L12,61.5609111 C12,64.4254463 10.9752941,67.1954903 9.11107923,69.3704076 L-1.50990331e-14,80 L-1.50990331e-14,80 L-1.50990331e-14,0 Z"
id=
"矩形"
fill=
"#FFFFFF"
></path>
<g
id=
"icon-下展"
transform=
"translate(6.000000, 40.500000) rotate(90.000000) translate(-6.000000, -40.500000) translate(2.000000, 38.000000)"
>
<mask
id=
"mask-3"
fill=
"white"
>
<use
xlink:href=
"#path-2"
></use>
</mask>
<use
id=
"蒙版"
fill=
"#575D6C"
fill-rule=
"evenodd"
xlink:href=
"#path-2"
></use>
</g>
</g>
</g>
</g>
</svg>
\ No newline at end of file
mindinsight/ui/src/assets/images/collapse-right.svg
0 → 100644
浏览文件 @
d73c66bd
<?xml version="1.0" encoding="UTF-8"?>
<svg
width=
"32px"
height=
"96px"
viewBox=
"0 0 32 96"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<!-- Generator: Sketch 63.1 (92452) - https://sketch.com -->
<title>
编组 12
</title>
<desc>
Created with Sketch.
</desc>
<defs>
<filter
x=
"-166.7%"
y=
"-25.0%"
width=
"433.3%"
height=
"150.0%"
filterUnits=
"objectBoundingBox"
id=
"filter-1"
>
<feOffset
dx=
"0"
dy=
"0"
in=
"SourceAlpha"
result=
"shadowOffsetOuter1"
></feOffset>
<feGaussianBlur
stdDeviation=
"5"
in=
"shadowOffsetOuter1"
result=
"shadowBlurOuter1"
></feGaussianBlur>
<feColorMatrix
values=
"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"
type=
"matrix"
in=
"shadowBlurOuter1"
result=
"shadowMatrixOuter1"
></feColorMatrix>
<feMerge>
<feMergeNode
in=
"shadowMatrixOuter1"
></feMergeNode>
<feMergeNode
in=
"SourceGraphic"
></feMergeNode>
</feMerge>
</filter>
<polygon
id=
"path-2"
points=
"0 0 8 0 4 5"
></polygon>
</defs>
<g
id=
"智能小助手"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<g
id=
"3"
transform=
"translate(-461.000000, -525.000000)"
>
<g
id=
"编组-12"
filter=
"url(#filter-1)"
transform=
"translate(471.000000, 533.000000)"
>
<path
d=
"M-1.50990331e-14,0 L9.11107923,10.6295924 C10.9752941,12.8045097 12,15.5745537 12,18.4390889 L12,61.5609111 C12,64.4254463 10.9752941,67.1954903 9.11107923,69.3704076 L-1.50990331e-14,80 L-1.50990331e-14,80 L-1.50990331e-14,0 Z"
id=
"矩形"
fill=
"#FFFFFF"
></path>
<g
id=
"icon-下展"
transform=
"translate(6.000000, 40.500000) rotate(-90.000000) translate(-6.000000, -40.500000) translate(2.000000, 38.000000)"
>
<mask
id=
"mask-3"
fill=
"white"
>
<use
xlink:href=
"#path-2"
></use>
</mask>
<use
id=
"蒙版"
fill=
"#575D6C"
fill-rule=
"evenodd"
xlink:href=
"#path-2"
></use>
</g>
</g>
</g>
</g>
</svg>
\ No newline at end of file
mindinsight/ui/src/views/train-manage/operator.vue
0 → 100644
浏览文件 @
d73c66bd
此差异已折叠。
点击以展开。
mindinsight/ui/src/views/train-manage/profiling-dashboard.vue
0 → 100644
浏览文件 @
d73c66bd
此差异已折叠。
点击以展开。
mindinsight/ui/src/views/train-manage/profiling.vue
0 → 100644
浏览文件 @
d73c66bd
<!--
Copyright 2020 Huawei Technologies Co., Ltd.All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<
template
>
<div
class=
"prof-wrap"
>
<div
class=
"prof-content"
>
<div
class=
"prof-content-left"
:class=
"
{collapse:collapse}">
<div
class=
"helper"
v-show=
"!collapse"
>
<div
class=
"cur-card"
>
<label>
{{
$t
(
'
profiling.curCard
'
)
}}
</label>
<el-select
v-model=
"curDashboardInfo.curCardNum"
class=
"card-select"
:placeholder=
"$t('public.select')"
>
<el-option
v-for=
"item in CardNumArr"
:key=
"item.value"
:label=
"item.value + $t('operator.card')"
:value=
"item.value"
>
</el-option>
</el-select>
</div>
<div
class=
"helper-title"
>
{{
$t
(
"
profiling.smartHelper
"
)
}}
</div>
</div>
<div
class=
"collapse-btn"
:class=
"
{collapse:collapse}"
@click="collapseLeft()">
</div>
</div>
<div
class=
"prof-content-right"
:class=
"
{collapse:collapse}">
<router-view></router-view>
<div
class=
"close"
@
click=
"backToDdashboard"
v-if=
"$route.path !== '/profiling/profiling-dashboard'"
>
<img
src=
"@/assets/images/close-page.png"
>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
import
RequestService
from
'
../../services/request-service
'
;
export
default
{
data
()
{
return
{
CardNumArr
:
[],
collapse
:
false
,
curDashboardInfo
:
{
curCardNum
:
''
,
query
:
{},
},
};
},
watch
:
{},
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
init
();
});
},
methods
:
{
init
()
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
id
&&
this
.
$route
.
query
.
dir
)
{
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
.
getDeviceList
();
}
else
{
this
.
curDashboardInfo
.
query
.
trainingJobId
=
''
;
this
.
curDashboardInfo
.
query
.
dir
=
''
;
this
.
curDashboardInfo
.
query
.
path
=
''
;
this
.
$message
.
error
(
this
.
$t
(
'
trainingDashboard.invalidId
'
));
}
},
getDeviceList
()
{
const
params
=
{
profile
:
this
.
curDashboardInfo
.
query
.
dir
,
train_id
:
this
.
curDashboardInfo
.
query
.
id
,
};
RequestService
.
getProfilerDeviceData
(
params
)
.
then
((
res
)
=>
{
if
(
res
&&
res
.
data
)
{
const
deviceList
=
res
.
data
;
if
(
deviceList
.
length
)
{
deviceList
.
forEach
((
item
)
=>
{
this
.
CardNumArr
.
push
({
value
:
item
,
});
});
this
.
curDashboardInfo
.
curCardNum
=
this
.
CardNumArr
[
0
].
value
;
}
}
else
{
this
.
CardNumArr
=
[];
this
.
curDashboardInfo
.
curCardNum
=
''
;
}
})
.
catch
(()
=>
{});
},
backToDdashboard
()
{
this
.
$router
.
push
({
path
:
'
/profiling/profiling-dashboard
'
,
query
:
{
dir
:
this
.
curDashboardInfo
.
query
.
dir
,
id
:
this
.
curDashboardInfo
.
query
.
id
,
path
:
this
.
curDashboardInfo
.
query
.
path
,
},
});
},
collapseLeft
()
{
this
.
collapse
=
!
this
.
collapse
;
this
.
$bus
.
$emit
(
'
resize
'
);
},
},
};
</
script
>
<
style
lang=
"scss"
>
.prof-wrap
{
height
:
100%
;
background
:
#fff
;
.prof-content
{
height
:
100%
;
padding
:
32px
32px
32px
0
;
&
>
div
{
float
:
left
;
height
:
100%
;
}
.prof-content-left
{
width
:
25%
;
transition
:
width
0
.2s
;
position
:
relative
;
.el-input__inner
{
padding
:
0
10px
;
}
.helper
{
padding
:
32px
;
height
:
100%
;
margin-left
:
32px
;
background
:
#edf0f5
;
.cur-card
{
margin-bottom
:
32px
;
.card-select
{
width
:
calc
(
100%
-
70px
);
}
&
>
label
{
margin-right
:
14px
;
}
}
.helper-title
{
font-size
:
20px
;
font-weight
:
bold
;
margin-bottom
:
32px
;
.el-icon-rank
{
float
:
right
;
cursor
:
pointer
;
}
}
}
.collapse-btn
{
position
:
absolute
;
right
:
-21px
;
width
:
31px
;
height
:
100px
;
top
:
50%
;
margin-top
:
-50px
;
cursor
:
pointer
;
line-height
:
86px
;
z-index
:
1
;
text-align
:
center
;
background-image
:
url('../../assets/images/collapse-left.svg')
;
}
.collapse-btn.collapse
{
background-image
:
url('../../assets/images/collapse-right.svg')
;
}
}
.prof-content-left.collapse
{
width
:
0
;
}
.prof-content-right
{
width
:
75%
;
padding-left
:
20px
;
transition
:
width
0
.2s
;
position
:
relative
;
.close
{
position
:
absolute
;
right
:
0
;
top
:
-10px
;
cursor
:
pointer
;
}
}
.prof-content-right.collapse
{
width
:
100%
;
}
}
}
</
style
>
mindinsight/ui/src/views/train-manage/step-trace.vue
0 → 100644
浏览文件 @
d73c66bd
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录