This commit is contained in:
Adam Raine 2023-02-08 12:05:58 -08:00
Родитель f366956572
Коммит e43314d7c4
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -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'],