Sha256: 2c6368c8957cddbb56289a0e3502420ae59a5c35d1a53d3824ee0ec14a65d1f4

Contents?: true

Size: 1.33 KB

Versions: 9

Compression:

Stored size: 1.33 KB

Contents

// 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.

#include "src/assembler.h"
#include "src/heap/spaces.h"
#include "src/isolate.h"
#include "src/objects.h"

namespace v8 {
namespace internal {

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(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);
#endif

 private:
  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);
#endif
};

}  // namespace internal
}  // namespace v8

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
libv8-6.0.286.54.1 vendor/v8/src/heap/code-stats.h
libv8-6.0.286.54.0 vendor/v8/src/heap/code-stats.h
libv8-6.0.286.54.0beta2 vendor/v8/src/heap/code-stats.h
libv8-6.0.286.54.0beta1 vendor/v8/src/heap/code-stats.h
libv8-6.0.286.44.0beta1 vendor/v8/src/heap/code-stats.h
node-compiler-0.9.1 vendor/node/deps/v8/src/heap/code-stats.h
node-compiler-0.9.0 vendor/node-v7.2.1/deps/v8/src/heap/code-stats.h
node-compiler-0.8.0 vendor/node-v7.2.0/deps/v8/src/heap/code-stats.h
node-compiler-0.7.0 vendor/node-v7.1.0/deps/v8/src/heap/code-stats.h