This commit is contained in:
@@ -658,7 +658,7 @@ export default function initialize() {
|
|||||||
|
|
||||||
//PROFILE
|
//PROFILE
|
||||||
sub.push({
|
sub.push({
|
||||||
title: t("ServerProfile"),
|
title: t("ServerProfiler"),
|
||||||
icon: "fa-binoculars",
|
icon: "fa-binoculars",
|
||||||
route: "/ops-profile",
|
route: "/ops-profile",
|
||||||
key: key++
|
key: key++
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
<v-row v-if="this.formState.ready">
|
<v-row v-if="this.formState.ready">
|
||||||
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
||||||
<v-col cols="12">
|
<v-col cols="12">
|
||||||
|
|
||||||
<v-btn @click="getDataFromApi" class="mt-1 mb-n6">
|
<v-btn @click="getDataFromApi" class="mt-1 mb-n6">
|
||||||
<v-icon>fa-sync</v-icon>
|
<v-icon>fa-sync</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
|
|||||||
@@ -15,13 +15,11 @@
|
|||||||
|
|
||||||
<v-tabs v-model="tab" color="primary" grow @change="tabChanged">
|
<v-tabs v-model="tab" color="primary" grow @change="tabChanged">
|
||||||
<v-tabs-slider></v-tabs-slider>
|
<v-tabs-slider></v-tabs-slider>
|
||||||
<v-tab>routes</v-tab>
|
<v-tab>ITEM1</v-tab>
|
||||||
<v-tab>storage</v-tab>
|
<v-tab>storage</v-tab>
|
||||||
<v-tab>cpu & memory</v-tab>
|
<v-tab>cpu & memory</v-tab>
|
||||||
<v-tabs-items v-model="tab">
|
<v-tabs-items v-model="tab">
|
||||||
<v-tab-item
|
<v-tab-item> </v-tab-item>
|
||||||
><iframe style="width:100%;height:100%" :src="profileUrl"></iframe>
|
|
||||||
</v-tab-item>
|
|
||||||
<v-tab-item>
|
<v-tab-item>
|
||||||
<v-col cols="12" class="my-1">
|
<v-col cols="12" class="my-1">
|
||||||
<v-sheet elevation="4">
|
<v-sheet elevation="4">
|
||||||
@@ -125,7 +123,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
storage: { isnew: true },
|
storage: { isnew: true },
|
||||||
memcpu: { isnew: true },
|
memcpu: { isnew: true },
|
||||||
routes: { isnew: true },
|
ITEM1: { isnew: true },
|
||||||
timeLineChartOptions: {
|
timeLineChartOptions: {
|
||||||
responsive: true,
|
responsive: true,
|
||||||
maintainAspectRatio: false,
|
maintainAspectRatio: false,
|
||||||
@@ -274,14 +272,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
profileUrl() {
|
|
||||||
// "http://localhost:7575/profiler/results-index?t=l47NWWuZo89MU1GuHV/tYY0d2xwsFrY/K5MZb1zTTvY";
|
|
||||||
return (
|
|
||||||
window.$gz.api.ServerBaseUrl() +
|
|
||||||
"profiler/results-index?t=" +
|
|
||||||
this.$store.state.downloadToken
|
|
||||||
);
|
|
||||||
},
|
|
||||||
cpuChartData() {
|
cpuChartData() {
|
||||||
return {
|
return {
|
||||||
datasets: [
|
datasets: [
|
||||||
@@ -450,7 +440,7 @@ export default {
|
|||||||
function tabIndexToRoute(tabIndex) {
|
function tabIndexToRoute(tabIndex) {
|
||||||
switch (tabIndex) {
|
switch (tabIndex) {
|
||||||
case 0:
|
case 0:
|
||||||
return "routes";
|
return "ITEM1";
|
||||||
case 1:
|
case 1:
|
||||||
return "storage";
|
return "storage";
|
||||||
case 2:
|
case 2:
|
||||||
|
|||||||
Reference in New Issue
Block a user