From 2f032e009fad020418df72e007148f61b25bcd66 Mon Sep 17 00:00:00 2001 From: qin_jun_yan Date: Thu, 20 Aug 2020 16:54:17 +0800 Subject: [PATCH] Data tracing is temporarily unavailable. Whether the display conditions are optimized and the profiling jump route is changed. --- .../profiling-gpu/profiling-dashboard.vue | 1 - .../src/views/train-manage/data-traceback.vue | 19 ++++++++++++++++--- .../src/views/train-manage/summary-manage.vue | 3 ++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue b/mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue index 4d17882..2e8a270 100644 --- a/mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue +++ b/mindinsight/ui/src/views/profiling-gpu/profiling-dashboard.vue @@ -254,7 +254,6 @@ export default { * Initialization function */ init() { - this.queryTimeline(); this.initPieChart(); }, /** diff --git a/mindinsight/ui/src/views/train-manage/data-traceback.vue b/mindinsight/ui/src/views/train-manage/data-traceback.vue index b7f3367..f29b607 100644 --- a/mindinsight/ui/src/views/train-manage/data-traceback.vue +++ b/mindinsight/ui/src/views/train-manage/data-traceback.vue @@ -27,7 +27,7 @@ limitations under the License. v-if="!loading">
+ v-show="!errorData&&!(!totalSeries.length&&pagination.total)">
@@ -231,8 +231,7 @@ limitations under the License.
-
@@ -344,6 +343,7 @@ export default { loading: true, errorData: true, tagDialogShow: false, + nodata: false, tagScope: {}, iconValue: 0, // icon list of tag @@ -1166,6 +1166,7 @@ export default { this.summaryDirList = []; this.lineagedata.serData = undefined; this.showTable = false; + this.nodata = true; this.echartNoData = true; } else { this.echart.showData = this.echart.brushData; @@ -1357,8 +1358,10 @@ export default { .then( (res) => { if (!res || !res.data) { + this.nodata = true; return; } + this.nodata = false; this.errorData = false; this.lineagedata = this.formateOriginData(res.data); const serData = this.lineagedata.serData; @@ -1366,10 +1369,12 @@ export default { }, (error) => { this.errorData = true; + this.nodata = true; }, ) .catch(() => { this.errorData = true; + this.nodata = true; }); }, @@ -1385,8 +1390,10 @@ export default { this.loading = false; this.echartNoData = false; if (!res || !res.data) { + this.nodata = true; return; } + this.nodata = false; this.errorData = false; this.customizedTypeObject = res.data.customized; let keys = Object.keys(this.customizedTypeObject); @@ -1463,6 +1470,9 @@ export default { this.totalSeries = this.lineagedata.fullNodeList; if (!this.totalSeries.length) { this.echartNoData = true; + this.nodata = true; + } else { + this.nodata = false; } this.totalSeries.forEach((nodeItem) => { if (this.createType[nodeItem.name]) { @@ -1549,6 +1559,7 @@ export default { this.initOver = true; this.showEchartPic = false; this.errorData = true; + this.nodata = true; }, ) .catch(() => { @@ -1556,6 +1567,7 @@ export default { this.initOver = true; this.showEchartPic = false; this.errorData = true; + this.nodata = true; }); }, @@ -1589,6 +1601,7 @@ export default { */ echartShowAllData() { // The first page is displayed. + this.nodata = false; if (this.showAllTimer) { clearTimeout(this.showAllTimer); this.showAllTimer = null; diff --git a/mindinsight/ui/src/views/train-manage/summary-manage.vue b/mindinsight/ui/src/views/train-manage/summary-manage.vue index 994b5c7..3b77a2b 100644 --- a/mindinsight/ui/src/views/train-manage/summary-manage.vue +++ b/mindinsight/ui/src/views/train-manage/summary-manage.vue @@ -203,9 +203,10 @@ export default { 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: '/profiling', + path: router, query: { dir: profilerDir, id: trainId, -- GitLab