This commit is contained in:
@@ -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++
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user