blob: ef964caa856878810f5bb3c881c2f3414794a4ef [file] [log] [blame]
// 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.
namespace v8 {
namespace internal {
class Isolate;
class HeapObject;
class LargeObjectSpace;
class PagedSpace;
class RelocIterator;
class CodeStatistics {
// 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(LargeObjectSpace* 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);
static void RecordCodeAndMetadataStatistics(HeapObject* object,
Isolate* isolate);
#ifdef DEBUG
static void CollectCommentStatistics(Isolate* isolate, RelocIterator* it);
static void CollectCodeCommentStatistics(HeapObject* obj, Isolate* isolate);
static void EnterComment(Isolate* isolate, const char* comment, int delta);
static void ResetCodeStatistics(Isolate* isolate);
} // namespace internal
} // namespace v8
#endif // V8_HEAP_CODE_STATS_H_