#include "src/extensions/statistics-extension.h"
#include "include/v8-template.h"
#include "src/common/assert-scope.h"
#include "src/execution/isolate.h"
#include "src/heap/heap-inl.h"
#include "src/logging/counters.h"
#include "src/objects/tagged.h"
#include "src/roots/roots.h"
namespace v8 {
namespace internal {
const char* const StatisticsExtension::kSource = …;
v8::Local<v8::FunctionTemplate> StatisticsExtension::GetNativeFunctionTemplate(
v8::Isolate* isolate, v8::Local<v8::String> str) { … }
static void AddCounter(v8::Isolate* isolate,
v8::Local<v8::Object> object,
StatsCounter* counter,
const char* name) { … }
static void AddNumber(v8::Isolate* isolate, v8::Local<v8::Object> object,
double value, const char* name) { … }
static void AddNumber64(v8::Isolate* isolate,
v8::Local<v8::Object> object,
int64_t value,
const char* name) { … }
void StatisticsExtension::GetCounters(
const v8::FunctionCallbackInfo<v8::Value>& info) { … }
}
}