This commit is contained in:
@@ -29,7 +29,7 @@ todo: OPS view metrics
|
||||
Memory to longer time frame?
|
||||
reconsider all time frames
|
||||
|
||||
|
||||
todo: re-fetch on breakpoint change
|
||||
|
||||
|
||||
RESEARCH:
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
<v-col cols="12" class="my-1">
|
||||
<gz-chart-line :chartData="memAllChartData" :options="mmChartOptions" />
|
||||
</v-col>
|
||||
|
||||
<v-col cols="12" class="my-1">
|
||||
<gz-chart-line :chartData="cpuChartData" :options="mmChartOptions" />
|
||||
</v-col>
|
||||
@@ -84,9 +83,6 @@ export default {
|
||||
computed: {
|
||||
cpuChartData() {
|
||||
return {
|
||||
labels: this.obj.downSampled
|
||||
? this.obj.metricMM.cpuLabels
|
||||
: this.obj.metricMM.labels,
|
||||
datasets: [
|
||||
{
|
||||
label: "CPU %",
|
||||
@@ -99,9 +95,6 @@ export default {
|
||||
},
|
||||
gcAllChartData() {
|
||||
return {
|
||||
labels: this.obj.downSampled
|
||||
? this.obj.metricMM.genAllLabels
|
||||
: this.obj.metricMM.labels,
|
||||
datasets: [
|
||||
{
|
||||
label: "GC Gen0",
|
||||
@@ -126,9 +119,6 @@ export default {
|
||||
},
|
||||
memAllChartData() {
|
||||
return {
|
||||
labels: this.obj.downSampled
|
||||
? this.obj.metricMM.memAllLabels
|
||||
: this.obj.metricMM.labels,
|
||||
datasets: [
|
||||
{
|
||||
label: "Allocated (MB)",
|
||||
@@ -173,8 +163,9 @@ export default {
|
||||
|
||||
vm.formState.loading = true;
|
||||
//##########################################################################################################################################
|
||||
//Max records depends upon the view but capped at 400
|
||||
let max = 400;
|
||||
//Visually, 200 points max looks best on full screen widths and 40 on galaxy s9 minimum standard
|
||||
//there is no relevant loss of fidelity with this downsampling
|
||||
let max = 200;
|
||||
//https://vuetifyjs.com/en/customization/breakpoints/#breakpoint-service-object
|
||||
//Note: used geometric progression of 1.5 for this
|
||||
//40*1.5=60, 60*1.5=90 etc etc etc
|
||||
|
||||
Reference in New Issue
Block a user