This commit is contained in:
2020-06-01 17:46:53 +00:00
parent 430efb7102
commit 84ec09a2b2
6 changed files with 33 additions and 12 deletions

View File

@@ -24,11 +24,6 @@
>
<pre>{{ log }}</pre>
</v-card>
<!-- <v-card-actions>
<v-btn @click="getDataFromApi">
<v-icon>fa-sync</v-icon>
</v-btn>
</v-card-actions> -->
</v-card>
</v-col>
</v-row>

View File

@@ -11,9 +11,6 @@
@click:append-outer="getDataFromApi"
@input="timePeriodChanged"
></v-select>
<!-- <v-btn @click="getDataFromApi">
<v-icon>fa-sync</v-icon>
</v-btn> -->
</v-col>
<v-tabs v-model="tab" color="primary" grow @change="tabChanged">
@@ -22,7 +19,9 @@
<v-tab>storage</v-tab>
<v-tab>cpu & memory</v-tab>
<v-tabs-items v-model="tab">
<v-tab-item>{{ routes }} </v-tab-item>
<v-tab-item
><iframe style="width:100%;height:100%" :src="profileUrl"></iframe>
</v-tab-item>
<v-tab-item>
<v-col cols="12" class="my-1">
<v-sheet elevation="4">
@@ -275,6 +274,14 @@ 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: [