Browse Source

!1316 Modify the layout ,timeline download file name and the link address on the profile page

From: @feng_xue_feng
Reviewed-by: @yelihua,@yelihua,@lixiaohui33
Signed-off-by: @lixiaohui33
pull/1316/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
498cab2f9a
4 changed files with 16 additions and 8 deletions
  1. +3
    -3
      mindinsight/ui/src/locales/en-us.json
  2. +1
    -1
      mindinsight/ui/src/locales/zh-cn.json
  3. +6
    -2
      mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue
  4. +6
    -2
      mindinsight/ui/src/views/profiling/profiling-dashboard.vue

+ 3
- 3
mindinsight/ui/src/locales/en-us.json View File

@@ -314,7 +314,7 @@
"desc": "How Do I Use Profiler for Profiling?",
"anchor": ["desc"],
"url": [
"https://www.mindspore.cn/tutorial/training/en/master/advanced_use/performance_profiling.html"
"https://www.mindspore.cn/tutorial/training/en/master/advanced_use/performance_profiling_ascend.html"
],
"gpuUrl": [
"https://www.mindspore.cn/tutorial/training/en/master/advanced_use/performance_profiling_gpu.html"
@@ -679,8 +679,7 @@
"abs_mean_update_ratio_lt": "Ratio of mean update <",
"param": "Threshold",
"max_min_lt": "MAX-MIN <",
"max_min_gt": "MAX-MIN >",
"outdateTip": "When a watchpoint list or the current step is modified, the result may be outdated. Check again or perform subsequent step training. "
"max_min_gt": "MAX-MIN >"
},
"tensorTuningAdvice": {
"operator_real_data_validation": [
@@ -818,6 +817,7 @@
"recommendDetail": "The recommended watchpoints check zero tensors, gradient disappearances, and update weight above threshold.",
"use": "Yes",
"notUse": "No",
"outdateTip": "When a watchpoint list or the current step is modified, the result may be outdated. Check again or perform subsequent step training. ",
"versionConflictTip": "MindSpore and MindInsight versions do not match. MindSpore version: {msv}; MindInsight version: {miv}",
"checkTips": {
"nan": "A tensor contains NaN, ",


+ 1
- 1
mindinsight/ui/src/locales/zh-cn.json View File

@@ -313,7 +313,7 @@
"desc": "如何使用Profiler进行性能分析",
"anchor": ["desc"],
"url": [
"https://www.mindspore.cn/tutorial/training/zh-CN/master/advanced_use/performance_profiling.html"
"https://www.mindspore.cn/tutorial/training/zh-CN/master/advanced_use/performance_profiling_ascend.html"
],
"gpuUrl": [
"https://www.mindspore.cn/tutorial/training/zh-CN/master/advanced_use/performance_profiling_gpu.html"


+ 6
- 2
mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue View File

@@ -826,7 +826,10 @@ export default {
const second = dealNumber(date.getSeconds());
const millisecond = date.getMilliseconds();
const timestamp = `${year}${mouth}${day}${hour}${minute}${second}${millisecond}`;
return `timeline_${this.trainingJobId}_${this.currentCard}_${timestamp}.json`;
return (
`timeline_${this.trainingJobId}_${this.currentCard}` +
`_ScopeNumber=${this.timelineInfo.scopeNameNum}_${timestamp}.json`
);
},
/**
* Keep the number with n decimal places.
@@ -1255,6 +1258,7 @@ export default {
float: left;
font-weight: bold;
font-size: 18px;
max-width: 300px;
}
.pro-router-wrap > div .title-wrap .tip-icon {
float: right;
@@ -1508,7 +1512,7 @@ export default {
width: 100px;
}
.pro-router-wrap .op-time-content {
height: calc(100% - 54px);
height: calc(100% - 72px);
overflow: auto;
}
.pro-router-wrap .pie-chart {


+ 6
- 2
mindinsight/ui/src/views/profiling/profiling-dashboard.vue View File

@@ -1202,7 +1202,10 @@ export default {
const second = dealNumber(date.getSeconds());
const millisecond = date.getMilliseconds();
const timestamp = `${year}${mouth}${day}${hour}${minute}${second}${millisecond}`;
return `timeline_${this.trainingJobId}_${this.currentCard}_${timestamp}.json`;
return (
`timeline_${this.trainingJobId}_${this.currentCard}` +
`_ScopeNumber=${this.timelineInfo.scopeNameNum}_${timestamp}.json`
);
},
/**
* Keep the number with n decimal places.
@@ -1258,6 +1261,7 @@ export default {
float: left;
font-weight: bold;
font-size: 18px;
max-width: 300px;
}
.pro-router-wrap > div .title-wrap .tip-icon {
float: right;
@@ -1512,7 +1516,7 @@ export default {
width: 100px;
}
.pro-router-wrap .op-time-content {
height: calc(100% - 54px);
height: calc(100% - 72px);
overflow: auto;
}
.pro-router-wrap .pie-chart {


Loading…
Cancel
Save