Skip to content

Commit

Permalink
Merge branch 'main' into fix-snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhlakhotia authored Feb 6, 2025
2 parents e7a0f99 + c273954 commit 3a34bb8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
4 changes: 3 additions & 1 deletion vue/src/components/CPP.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<template>
<div>
<Shared :language="'C++'"></Shared>
<Metrics :language="'C++'"></Metrics>
<TransactionsShared :language="'C++'"></TransactionsShared>
</div>
</template>

<script>
import Shared from "@/components/Shared.vue";
import TransactionsShared from "@/components/TransactionsShared.vue";
import Metrics from "@/components/Metrics.vue";
export default {
components: {Shared, TransactionsShared}
components: {Metrics, Shared, TransactionsShared}
}
</script>

29 changes: 27 additions & 2 deletions vue/src/components/Metrics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
All these tests are doing KV gets in 20 threads.

<h2>Memory</h2>
Measures the maximum heap memory used in MB by the performer+SDK.
<Results :input="memHeapUsedMB" :key="'heap-' + reloadTrigger"></Results>
<div v-if="hasHeapUsedMB">
Measures the maximum heap memory used in MB by the performer+SDK.
<Results :input="memHeapUsedMB" :key="'heap-' + reloadTrigger"></Results>
</div>
<div v-if="hasRssUsedMB">
Measures the maximum RSS memory used in MB by the performer+SDK.
<Results :input="memRssUsedMB" :key="'rss-' + reloadTrigger"></Results>
</div>

<h2>Thread Count</h2>
Measures the maximum thread count used by the performer+SDK.
Expand Down Expand Up @@ -63,6 +69,14 @@ export default {
}
},
hasHeapUsedMB() {
return ["go", "java", "kotlin", "scala"].includes(this.language.toLowerCase());
},
hasRssUsedMB() {
return ["c++", "node", "python", "ruby"].includes(this.language.toLowerCase());
},
memHeapUsedMB() {
return {
...sharedQuery(this.language, this.excludeSnapshots),
Expand All @@ -74,6 +88,17 @@ export default {
}
},
memRssUsedMB() {
return {
...sharedQuery(this.language),
"yAxes": [{
"type": "metric",
"metric": "memRssUsedMB",
}],
mergingType: "Maximum",
}
},
threadCount() {
return {
...sharedQuery(this.language, this.excludeSnapshots),
Expand Down

0 comments on commit 3a34bb8

Please sign in to comment.