aboutsummaryrefslogtreecommitdiff
path: root/src/zen/frontend/html/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/zen/frontend/html/api.js')
-rw-r--r--src/zen/frontend/html/api.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/zen/frontend/html/api.js b/src/zen/frontend/html/api.js
index fbe5304ca..86831220e 100644
--- a/src/zen/frontend/html/api.js
+++ b/src/zen/frontend/html/api.js
@@ -107,6 +107,14 @@ export function getCsvMetadata() {
return getJson("csv-metadata");
}
+export function getCounters() {
+ return getJson("counters");
+}
+
+export function getCounterSeries(id) {
+ return getJson(`counter-series?id=${encodeURIComponent(id)}`);
+}
+
export function getAllocSummary() {
return getJson("alloc-summary");
}