This commit is contained in:
2020-06-01 19:02:32 +00:00
parent 84ec09a2b2
commit 036666f248
3 changed files with 6 additions and 17 deletions

View File

@@ -658,7 +658,7 @@ export default function initialize() {
//PROFILE
sub.push({
title: t("ServerProfile"),
title: t("ServerProfiler"),
icon: "fa-binoculars",
route: "/ops-profile",
key: key++

View File

@@ -1,8 +1,7 @@
<template>
<v-row v-if="this.formState.ready">
<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-icon>fa-sync</v-icon>
</v-btn>

View File

@@ -15,13 +15,11 @@
<v-tabs v-model="tab" color="primary" grow @change="tabChanged">
<v-tabs-slider></v-tabs-slider>
<v-tab>routes</v-tab>
<v-tab>ITEM1</v-tab>
<v-tab>storage</v-tab>
<v-tab>cpu & memory</v-tab>
<v-tabs-items v-model="tab">
<v-tab-item
><iframe style="width:100%;height:100%" :src="profileUrl"></iframe>
</v-tab-item>
<v-tab-item> </v-tab-item>
<v-tab-item>
<v-col cols="12" class="my-1">
<v-sheet elevation="4">
@@ -125,7 +123,7 @@ export default {
return {
storage: { isnew: true },
memcpu: { isnew: true },
routes: { isnew: true },
ITEM1: { isnew: true },
timeLineChartOptions: {
responsive: true,
maintainAspectRatio: false,
@@ -274,14 +272,6 @@ export default {
}
},
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() {
return {
datasets: [
@@ -450,7 +440,7 @@ export default {
function tabIndexToRoute(tabIndex) {
switch (tabIndex) {
case 0:
return "routes";
return "ITEM1";
case 1:
return "storage";
case 2: