/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/heap/code-stats.h
49 строк
1 KB
Michaël Zasso
deps: update V8 to 13.6.233.8
02 май 2025, 16:06
Не верифицирован
02 май 2025, 16:06
918fe04
Код
Авторство
О чём код?
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_HEAP_CODE_STATS_H_ #define V8_HEAP_CODE_STATS_H_ namespace v8 { namespace internal { class AbstractCode; class CodeCommentsIterator; class HeapObject; class Isolate; class OldLargeObjectSpace; class PagedSpace; template <typename T> class Tagged; class CodeStatistics { public: // Collect statistics related to code size. static void CollectCodeStatistics(PagedSpace* space, Isolate* isolate); // Collect statistics related to code size from large object space. static void CollectCodeStatistics(OldLargeObjectSpace* space, Isolate* isolate); // Reset code size related statistics static void ResetCodeAndMetadataStatistics(Isolate* isolate); #ifdef DEBUG // Report statistics about code kind, code+metadata and code comments. static void ReportCodeStatistics(Isolate* isolate); #endif private: static void RecordCodeAndMetadataStatistics(Tagged<HeapObject> object, Isolate* isolate); #ifdef DEBUG static void ResetCodeStatistics(Isolate* isolate); #endif }; } // namespace internal } // namespace v8 #endif // V8_HEAP_CODE_STATS_H_