This commit is contained in:
@@ -64,9 +64,7 @@ todo: Profiling
|
|||||||
https://github.com/MiniProfiler/dotnet/tree/master/src/MiniProfiler.Shared/ui
|
https://github.com/MiniProfiler/dotnet/tree/master/src/MiniProfiler.Shared/ui
|
||||||
|
|
||||||
Full profiling view:
|
Full profiling view:
|
||||||
Add a role check in startup on auth for full view
|
|
||||||
Add a switch to turn off profiling or turn it on
|
|
||||||
ideally somehow do it from within a route so can turn it on and off dynamically
|
|
||||||
Add a filter to filter out anything auth related so no one can see that, i.e. filter out Authenticate routes where JWT is visible in query
|
Add a filter to filter out anything auth related so no one can see that, i.e. filter out Authenticate routes where JWT is visible in query
|
||||||
Add a link in UI for profiler, maybe host inside a frame or something
|
Add a link in UI for profiler, maybe host inside a frame or something
|
||||||
(actually this might help with the auth dl token as well)
|
(actually this might help with the auth dl token as well)
|
||||||
|
|||||||
@@ -272,6 +272,13 @@ export default {
|
|||||||
return window.$gz.store.state.apiUrl + apiPath;
|
return window.$gz.store.state.apiUrl + apiPath;
|
||||||
},
|
},
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
|
// Just the server itself
|
||||||
|
// used by profiler etc
|
||||||
|
//
|
||||||
|
ServerBaseUrl() {
|
||||||
|
return window.$gz.store.state.helpUrl.replace("/docs/", "/");
|
||||||
|
},
|
||||||
|
/////////////////////////////
|
||||||
// backup file download URL
|
// backup file download URL
|
||||||
//
|
//
|
||||||
backupDownloadUrl(fileName) {
|
backupDownloadUrl(fileName) {
|
||||||
|
|||||||
@@ -656,6 +656,14 @@ export default function initialize() {
|
|||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//PROFILE
|
||||||
|
sub.push({
|
||||||
|
title: t("ServerProfile"),
|
||||||
|
icon: "fa-binoculars",
|
||||||
|
route: "/ops-profile",
|
||||||
|
key: key++
|
||||||
|
});
|
||||||
|
|
||||||
//NOTIFICATION CONFIG AND HISTORY
|
//NOTIFICATION CONFIG AND HISTORY
|
||||||
sub.push({
|
sub.push({
|
||||||
title: t("NotificationSettings"),
|
title: t("NotificationSettings"),
|
||||||
|
|||||||
@@ -373,6 +373,12 @@ export default new Router({
|
|||||||
component: () =>
|
component: () =>
|
||||||
import(/* webpackChunkName: "ops" */ "./views/ops-metrics.vue")
|
import(/* webpackChunkName: "ops" */ "./views/ops-metrics.vue")
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/ops-profile",
|
||||||
|
name: "ops-profile",
|
||||||
|
component: () =>
|
||||||
|
import(/* webpackChunkName: "ops" */ "./views/ops-profile.vue")
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
path: "/ops-notification-settings",
|
path: "/ops-notification-settings",
|
||||||
|
|||||||
@@ -24,11 +24,6 @@
|
|||||||
>
|
>
|
||||||
<pre>{{ log }}</pre>
|
<pre>{{ log }}</pre>
|
||||||
</v-card>
|
</v-card>
|
||||||
<!-- <v-card-actions>
|
|
||||||
<v-btn @click="getDataFromApi">
|
|
||||||
<v-icon>fa-sync</v-icon>
|
|
||||||
</v-btn>
|
|
||||||
</v-card-actions> -->
|
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|||||||
@@ -11,9 +11,6 @@
|
|||||||
@click:append-outer="getDataFromApi"
|
@click:append-outer="getDataFromApi"
|
||||||
@input="timePeriodChanged"
|
@input="timePeriodChanged"
|
||||||
></v-select>
|
></v-select>
|
||||||
<!-- <v-btn @click="getDataFromApi">
|
|
||||||
<v-icon>fa-sync</v-icon>
|
|
||||||
</v-btn> -->
|
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-tabs v-model="tab" color="primary" grow @change="tabChanged">
|
<v-tabs v-model="tab" color="primary" grow @change="tabChanged">
|
||||||
@@ -22,7 +19,9 @@
|
|||||||
<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>{{ routes }} </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">
|
||||||
@@ -275,6 +274,14 @@ 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: [
|
||||||
|
|||||||
Reference in New Issue
Block a user