diff options
Diffstat (limited to 'cli/tests/heapstats.js')
-rw-r--r-- | cli/tests/heapstats.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tests/heapstats.js b/cli/tests/heapstats.js index 0ed623e56..fba9e66d9 100644 --- a/cli/tests/heapstats.js +++ b/cli/tests/heapstats.js @@ -2,15 +2,15 @@ "use strict"; function allocTest(alloc, allocAssert, deallocAssert) { - // Helper func that GCs then returns heapStats + // Helper func that GCs then returns memory usage const sample = () => { // deno-lint-ignore no-undef gc(); - return Deno.core.heapStats(); + return Deno.memoryUsage(); }; - const delta = (t1, t2) => t2.usedHeapSize - t1.usedHeapSize; + const delta = (t1, t2) => t2.heapUsed - t1.heapUsed; - // Sample "clean" heapStats + // Sample "clean" heap usage const t1 = sample(); // Alloc |