From 16222aba3bf14c507bc0f9667b9219d17578be05 Mon Sep 17 00:00:00 2001 From: Aaron Boodman Date: Thu, 23 Dec 2021 13:52:08 -0800 Subject: [PATCH] Also track push gap --- pages/d/[id].tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/d/[id].tsx b/pages/d/[id].tsx index 31f1ca2..116bc12 100644 --- a/pages/d/[id].tsx +++ b/pages/d/[id].tsx @@ -12,6 +12,8 @@ import { NullableVersion, nullableVersionSchema } from "backend/types/version"; import { sleep } from "util/test-utils"; import { GapTracker } from "util/gap-tracker"; +const pushTracker = new GapTracker("push"); + export default function Home() { const [rep, setRep] = useState | null>(null); @@ -48,6 +50,8 @@ export default function Home() { m.timestamp = performance.now(); } + pushTracker.push(performance.now()); + sleep(200).then(() => { ws.send(JSON.stringify(msg)); });