From e43314d7c4d6c36385d77b1d2b027dce98627fdf Mon Sep 17 00:00:00 2001 From: Adam Raine Date: Wed, 8 Feb 2023 12:05:58 -0800 Subject: [PATCH] update --- docs/recipes/custom-audit/memory-audit.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/recipes/custom-audit/memory-audit.js b/docs/recipes/custom-audit/memory-audit.js index 50e17c23c4..7fd411a712 100644 --- a/docs/recipes/custom-audit/memory-audit.js +++ b/docs/recipes/custom-audit/memory-audit.js @@ -6,11 +6,10 @@ import {Audit} from 'lighthouse'; -const MAX_MEMORY_USAGE = 1000; +const MAX_MEMORY_USAGE = 1_000_000; /** - * @fileoverview Tests that animation lengths are below the - * test threshold value. + * @fileoverview Tests that the memory usage is below a certain threshold. */ class MemoryUsage extends Audit { @@ -19,7 +18,7 @@ class MemoryUsage extends Audit { id: 'memory-audit', title: 'Did not find any large memory usage', failureTitle: 'Found large memory usage', - description: 'Used to find any memory samples larger than 1kb', + description: 'Detects if any memory sample was larger than 1 MB', // The name of the custom gatherer class that provides input to this audit. requiredArtifacts: ['MemoryProfile'],