Skip to content

Commit

Permalink
Provide component to output split and monolith plots
Browse files Browse the repository at this point in the history
  • Loading branch information
MaXal committed Oct 18, 2024
1 parent 72bc26d commit 0836a1d
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<template>
<GroupProjectsChart
:can-be-closed="false"
:value-unit="valueUnit"
:legend-formatter="legendFormatter"
:machines="machines"
:label="label"
:projects="projectWithClient"
:measure="measure"
:aliases="aliasesWithClient"
/>
</template>

<script setup lang="ts">
import { ValueUnit } from "../common/chart"
import GroupProjectsChart from "./GroupProjectsChart.vue"
interface Props {
label: string
measure: string | string[]
projects: string[]
machines?: string[] | null
valueUnit?: ValueUnit
legendFormatter?: (name: string) => string
aliases?: string[] | null
}
const { label, measure, projects, machines = null, valueUnit = "ms", legendFormatter = (name: string) => name, aliases = null } = defineProps<Props>()
const projectWithClient = [...projects, ...projects.map((project) => `${project}/embeddedClient`)]
const aliasesWithClient = aliases != null ? [...aliases, ...aliases] : null
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</div>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="Inspections"
measure="globalInspections"
:projects="[
Expand Down Expand Up @@ -55,7 +55,7 @@
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="Gitlab Inspections"
measure="globalInspections"
:projects="[
Expand Down Expand Up @@ -91,7 +91,7 @@
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="File Analysis on Open"
measure="firstCodeAnalysis"
:projects="[
Expand Down Expand Up @@ -202,7 +202,7 @@
</section>

<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="GC Pause, ms"
measure="gcPause"
:projects="[
Expand Down Expand Up @@ -250,7 +250,7 @@
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="GC Memory Collected, Mb"
measure="freedMemoryByGC"
:projects="[
Expand Down Expand Up @@ -298,7 +298,7 @@
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="Routes Highlighting (removed)"
measure="highlighting"
:projects="[
Expand All @@ -314,7 +314,7 @@

<script setup lang="ts">
import AggregationChart from "../charts/AggregationChart.vue"
import GroupProjectsChart from "../charts/GroupProjectsChart.vue"
import GroupProjectsWithClientChart from "../charts/GroupProjectsWithClientChart.vue"
import DashboardPage from "../common/DashboardPage.vue"
import { DataQuery, DataQueryExecutorConfiguration } from "../common/dataQuery"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</div>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="Find Usages: Execution Time"
measure="findUsages"
:projects="[
Expand Down Expand Up @@ -81,7 +81,7 @@
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="Find Usages: Quantity"
measure="findUsages#number"
:projects="[
Expand Down Expand Up @@ -137,7 +137,7 @@
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="Completion (Diaspora)"
measure="completion"
:projects="[
Expand All @@ -153,7 +153,7 @@
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="Completion (GitLab)"
measure="completion"
:projects="[
Expand All @@ -169,7 +169,7 @@
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="Completion (Redmine)"
measure="completion"
:projects="[
Expand All @@ -185,7 +185,7 @@
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="Typing: Average AWT Delay"
measure="test#average_awt_delay"
:projects="[
Expand Down Expand Up @@ -219,7 +219,7 @@
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="Typing: Total Time"
measure="typing"
:projects="[
Expand Down Expand Up @@ -253,7 +253,7 @@
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="Enter Handling: Average AWT Delay"
measure="test#average_awt_delay"
:projects="[
Expand Down Expand Up @@ -301,7 +301,7 @@
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="Enter Handling: Total Time"
measure="typing"
:projects="[
Expand Down Expand Up @@ -349,7 +349,7 @@
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="Symbol Members: Execution Time"
measure="getSymbolMembers"
:projects="[
Expand All @@ -371,7 +371,7 @@
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="Symbol Members: Quantity"
measure="getSymbolMembers#number"
:projects="[
Expand All @@ -393,14 +393,14 @@
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="Distributive Size"
measure="unpackedDistributiveSize"
:projects="['distributive-size-RM']"
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="GC Pause, ms"
measure="gcPause"
:projects="[
Expand Down Expand Up @@ -458,7 +458,7 @@
/>
</section>
<section>
<GroupProjectsChart
<GroupProjectsWithClientChart
label="GC Memory Collected, Mb"
measure="freedMemoryByGC"
:projects="[
Expand Down Expand Up @@ -520,9 +520,9 @@

<script setup lang="ts">
import AggregationChart from "../charts/AggregationChart.vue"
import GroupProjectsChart from "../charts/GroupProjectsChart.vue"
import DashboardPage from "../common/DashboardPage.vue"
import { DataQuery, DataQueryExecutorConfiguration } from "../common/dataQuery"
import GroupProjectsWithClientChart from "../charts/GroupProjectsWithClientChart.vue"
const typingOnlyConfigurator = {
configureQuery(query: DataQuery, _configuration: DataQueryExecutorConfiguration): boolean {
Expand Down

0 comments on commit 0836a1d

Please sign in to comment.