Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
4e3213a8
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看板
提交
4e3213a8
编写于
7月 17, 2020
作者:
F
fengxuefeng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
give the costing time an acurate unit
上级
34074440
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
27 addition
and
7 deletion
+27
-7
mindinsight/ui/src/services/request-service.js
mindinsight/ui/src/services/request-service.js
+1
-1
mindinsight/ui/src/views/train-manage/hardware-visual.vue
mindinsight/ui/src/views/train-manage/hardware-visual.vue
+2
-2
mindinsight/ui/src/views/train-manage/operator.vue
mindinsight/ui/src/views/train-manage/operator.vue
+23
-3
mindinsight/ui/src/views/train-manage/profiling-dashboard.vue
...insight/ui/src/views/train-manage/profiling-dashboard.vue
+1
-1
未找到文件。
mindinsight/ui/src/services/request-service.js
浏览文件 @
4e3213a8
...
@@ -291,7 +291,7 @@ export default {
...
@@ -291,7 +291,7 @@ export default {
getMetricsData
()
{
getMetricsData
()
{
return
axios
({
return
axios
({
method
:
'
get
'
,
method
:
'
get
'
,
url
:
'
v1/mindinsight/
resource_monitor/current/metrics
'
,
url
:
'
v1/mindinsight/
sysmetric/current
'
,
headers
:
{
headers
:
{
ignoreError
:
true
,
ignoreError
:
true
,
},
},
...
...
mindinsight/ui/src/views/train-manage/hardware-visual.vue
浏览文件 @
4e3213a8
...
@@ -396,8 +396,8 @@ export default {
...
@@ -396,8 +396,8 @@ export default {
this
.
temperatureMax
=
this
.
temperatureMax
=
Math
.
max
(...
this
.
chipTableData
.
map
((
val
)
=>
val
.
temperature
))
*
1.2
;
Math
.
max
(...
this
.
chipTableData
.
map
((
val
)
=>
val
.
temperature
))
*
1.2
;
// 1.2 In order to Demonstrated effect
// 1.2 In order to Demonstrated effect
if
(
res
.
data
.
m
omory
&&
res
.
data
.
mo
mory
.
virtual
)
{
if
(
res
.
data
.
m
emory
&&
res
.
data
.
me
mory
.
virtual
)
{
this
.
dealChartData
(
this
.
virtualChart
,
res
.
data
.
m
o
mory
.
virtual
);
this
.
dealChartData
(
this
.
virtualChart
,
res
.
data
.
m
e
mory
.
virtual
);
this
.
setOption
(
this
.
virtualChart
);
this
.
setOption
(
this
.
virtualChart
);
}
}
if
(
res
.
data
.
cpu
)
{
if
(
res
.
data
.
cpu
)
{
...
...
mindinsight/ui/src/views/train-manage/operator.vue
浏览文件 @
4e3213a8
...
@@ -22,6 +22,7 @@ limitations under the License.
...
@@ -22,6 +22,7 @@ limitations under the License.
<el-tab-pane
label=
"AI CORE"
<el-tab-pane
label=
"AI CORE"
name=
"core"
>
name=
"core"
>
<div
class=
"cl-profiler-top"
<div
class=
"cl-profiler-top"
:class=
"
{fullScreen:fullScreen}"
v-if="coreCharts.data.length">
v-if="coreCharts.data.length">
<div>
<div>
<span
class=
"profiler-title"
>
<span
class=
"profiler-title"
>
...
@@ -46,10 +47,15 @@ limitations under the License.
...
@@ -46,10 +47,15 @@ limitations under the License.
</div>
</div>
</div>
</div>
<div
class=
"cl-profiler-bottom"
<div
class=
"cl-profiler-bottom"
:class=
"
{fullScreen:fullScreen}"
v-if="coreCharts.data.length">
v-if="coreCharts.data.length">
<span
class=
"profiler-title"
>
<span
class=
"profiler-title"
>
{{
$t
(
'
operator.operatorStatistics
'
)
}}
{{
$t
(
'
operator.operatorStatistics
'
)
}}
</span>
</span>
<img
src=
"../../assets/images/full-screen.png"
:title=
"$t('graph.fullScreen')"
class=
"fullScreen"
@
click=
"fullScreen=!fullScreen"
>
<div>
<div>
<el-radio-group
v-model=
"statisticType"
<el-radio-group
v-model=
"statisticType"
@
change=
"coreTableChange"
@
change=
"coreTableChange"
...
@@ -120,7 +126,7 @@ limitations under the License.
...
@@ -120,7 +126,7 @@ limitations under the License.
:property=
"item"
:property=
"item"
:key=
"$index"
:key=
"$index"
sortable
sortable
:label=
"item==='execution_time'?`${item} (
ms
)`:item"
>
:label=
"item==='execution_time'?`${item} (
${$t('profiling.unit')}
)`:item"
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<el-table
v-show=
"statisticType && opAllTypeList.opDetailCol && opAllTypeList.opDetailCol.length"
<el-table
v-show=
"statisticType && opAllTypeList.opDetailCol && opAllTypeList.opDetailCol.length"
...
@@ -135,7 +141,7 @@ limitations under the License.
...
@@ -135,7 +141,7 @@ limitations under the License.
<el-table-column
v-for=
"(item, $index) in opAllTypeList.opDetailCol"
<el-table-column
v-for=
"(item, $index) in opAllTypeList.opDetailCol"
:property=
"item"
:property=
"item"
:key=
"$index"
:key=
"$index"
:label=
"item==='avg_execution_time'?`${item} (
ms
)`:item"
:label=
"item==='avg_execution_time'?`${item} (
${$t('profiling.unit')}
)`:item"
:sortable=
"item === 'op_info' ? false : 'custom'"
:sortable=
"item === 'op_info' ? false : 'custom'"
:width=
"(item==='avg_execution_time'|| item==='subgraph' ||
:width=
"(item==='avg_execution_time'|| item==='subgraph' ||
item==='op_name'|| item==='op_type')?'220':''"
item==='op_name'|| item==='op_type')?'220':''"
...
@@ -198,7 +204,8 @@ limitations under the License.
...
@@ -198,7 +204,8 @@ limitations under the License.
<el-table-column
v-for=
"(item, $index) in opCpuList.opDetailCol"
<el-table-column
v-for=
"(item, $index) in opCpuList.opDetailCol"
:property=
"item"
:property=
"item"
:key=
"$index"
:key=
"$index"
:label=
"(item==='total_time' || item==='dispatch_time')?`${item} (ms)`:item"
:label=
"(item==='total_time' || item==='dispatch_time')?
`${item} (${$t('profiling.unit')})`:item"
sortable=
"custom"
sortable=
"custom"
show-overflow-tooltip
>
show-overflow-tooltip
>
</el-table-column>
</el-table-column>
...
@@ -318,6 +325,7 @@ export default {
...
@@ -318,6 +325,7 @@ export default {
childProp
:
null
,
childProp
:
null
,
childOrder
:
null
,
childOrder
:
null
,
},
},
fullScreen
:
false
,
};
};
},
},
watch
:
{
watch
:
{
...
@@ -1106,13 +1114,25 @@ export default {
...
@@ -1106,13 +1114,25 @@ export default {
.cl-search-box
{
.cl-search-box
{
float
:
right
;
float
:
right
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
margin-right
:
20px
;
}
}
.cl-profiler-top
{
.cl-profiler-top
{
height
:
45%
;
height
:
45%
;
}
}
.cl-profiler-top.fullScreen
{
display
:
none
;
}
.cl-profiler-bottom
{
.cl-profiler-bottom
{
height
:
55%
;
height
:
55%
;
padding-top
:
10px
;
padding-top
:
10px
;
.fullScreen
{
float
:
right
;
margin-top
:
5px
;
cursor
:
pointer
;
}
}
.cl-profiler-bottom.fullScreen
{
height
:
100%
;
}
}
.cpu-tab
{
.cpu-tab
{
.cl-profiler-top
{
.cl-profiler-top
{
...
...
mindinsight/ui/src/views/train-manage/profiling-dashboard.vue
浏览文件 @
4e3213a8
...
@@ -281,7 +281,7 @@ limitations under the License.
...
@@ -281,7 +281,7 @@ limitations under the License.
<span
class=
"time"
>
<span
class=
"time"
>
<span
class=
"bar"
<span
class=
"bar"
:style=
"
{width: item.time / pieChart.topN[0].time * 100 + '%'}">
</span>
:style=
"
{width: item.time / pieChart.topN[0].time * 100 + '%'}">
</span>
<span
class=
"value"
>
{{
item
.
time
}}
ms
</span>
<span
class=
"value"
>
{{
item
.
time
+
$t
(
'
profiling.unit
'
)
}}
</span>
</span>
</span>
</li>
</li>
</ul>
</ul>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录