Skip to content

Commit

Permalink
Add Clion tests and dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
MaXal committed Jul 11, 2023
1 parent 2ada7cb commit 733dff2
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<template>
<DashboardPage
v-slot="{ averagesConfigurators }"
db-name="perfint"
table="clion"
persistent-id="clion_dashboard"
initial-machine="Linux EC2 C6id.8xlarge (32 vCPU Xeon, 64 GB)"
>
<section class="flex gap-6">
<div class="flex-1 min-w-0">
<AggregationChart
:configurators="averagesConfigurators"
:aggregated-measure="'processingSpeed#C++'"
:title="'Indexing C++ (kB/s)'"
:chart-color="'#219653'"
:value-unit="'counter'"
/>
</div>
<div class="flex-1 min-w-0">
<AggregationChart
:configurators="averagesConfigurators"
:aggregated-measure="'processingSpeed#C++ Header'"
:title="'Indexing C++ Header (kB/s)'"
:chart-color="'#219653'"
:value-unit="'counter'"
/>
</div>
<div class="flex-1 min-w-0">
<AggregationChart
:configurators="averagesConfigurators"
:aggregated-measure="'completion\_%'"
:is-like="true"
:title="'Completion'"
/>
</div>
</section>
<section>
<GroupProjectsChart
label="Indexing"
:measure="['indexing', 'indexingTimeWithoutPauses']"
:projects="['curl/indexing']"
/>
</section>
<section>
<GroupProjectsChart
label="Number Of Indexed Files"
measure="numberOfIndexedFiles"
:projects="['curl/indexing']"
/>
</section>
<section>
<GroupProjectsChart
label="Scanning"
:measure="['scanning', 'scanningTimeWithoutPauses']"
:projects="['curl/indexing']"
/>
</section>
<section>
<GroupProjectsChart
label="Completion"
measure="completion"
:projects="['fmtlib/completion']"
/>
</section>
</DashboardPage>
</template>

<script setup lang="ts">
import AggregationChart from "../charts/AggregationChart.vue"
import GroupProjectsChart from "../charts/GroupProjectsChart.vue"
import DashboardPage from "../common/DashboardPage.vue"
</script>
46 changes: 45 additions & 1 deletion dashboard/new-dashboard/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const enum ROUTE_PREFIX {
WebStorm = "/webstorm",
Bazel = "/bazel",
Qodana = "/qodana",
Clion = "/clion",
}
const TEST_ROUTE = "tests"
const DEV_TEST_ROUTE = "testsDev"
Expand Down Expand Up @@ -96,6 +97,8 @@ enum ROUTES {
FleetStartupDashboard = `${ROUTE_PREFIX.Fleet}/startupDashboard`,
BazelTest = `${ROUTE_PREFIX.Bazel}/${TEST_ROUTE}`,
QodanaTest = `${ROUTE_PREFIX.Qodana}/${TEST_ROUTE}`,
ClionTest = `${ROUTE_PREFIX.Clion}/${TEST_ROUTE}`,
ClionDashboard = `${ROUTE_PREFIX.Clion}/${DASHBOARD_ROUTE}`,
}

export interface Tab {
Expand Down Expand Up @@ -589,7 +592,28 @@ const QODANA: Product = {
],
}

export const PRODUCTS = [IJ_STARTUP, IDEA, PHPSTORM, KOTLIN, GOLAND, RUBYMINE, PYCHARM, WEBSTORM, RUST, SCALA, JBR, FLEET, BAZEL, QODANA]
const CLION: Product = {
url: ROUTE_PREFIX.Clion,
label: "Clion",
children: [
{
url: ROUTE_PREFIX.Clion,
label: "",
tabs: [
{
url: ROUTES.ClionDashboard,
label: DASHBOARD_LABEL,
},
{
url: ROUTES.ClionTest,
label: TESTS_LABEL,
},
],
},
],
}

export const PRODUCTS = [IJ_STARTUP, IDEA, PHPSTORM, KOTLIN, GOLAND, RUBYMINE, PYCHARM, WEBSTORM, RUST, SCALA, JBR, FLEET, BAZEL, QODANA, CLION]
export function getNavigationElement(path: string): Product {
return PRODUCTS.find((PRODUCTS) => path.startsWith(PRODUCTS.url)) ?? PRODUCTS[0]
}
Expand Down Expand Up @@ -1045,6 +1069,26 @@ export function getNewDashboardRoutes(): ParentRouteRecord[] {
},
meta: { pageTitle: "Qodana tests" },
},
{
path: ROUTES.ClionTest,
component: () => import("./components/common/PerformanceTests.vue"),
props: {
dbName: "perfint",
table: "clion",
initialMachine: "Linux EC2 c5a(d).xlarge (4 vCPU, 8 GB)",
},
meta: { pageTitle: "Clion tests" },
},
{
path: ROUTES.ClionDashboard,
component: () => import("./components/clion/PerformanceDashboard.vue"),
props: {
dbName: "perfint",
table: "clion",
initialMachine: "Linux EC2 c5a(d).xlarge (4 vCPU, 8 GB)",
},
meta: { pageTitle: "Clion dashboard" },
},
],
},
]
Expand Down

0 comments on commit 733dff2

Please sign in to comment.