Lines Matching refs:GCProfiler
277 GCProfiler* profiler = static_cast<GCProfiler*>(data);
295 GCProfiler* profiler = static_cast<GCProfiler*>(data);
309 GCProfiler::GCProfiler(Environment* env, Local<Object> object)
323 GCProfiler::~GCProfiler() {
324 if (state != GCProfiler::GCProfilerState::kInitialized) {
330 JSONWriter* GCProfiler::writer() {
334 std::ostringstream* GCProfiler::out_stream() {
338 void GCProfiler::New(const FunctionCallbackInfo<Value>& args) {
341 new GCProfiler(env, args.This());
344 void GCProfiler::Start(const FunctionCallbackInfo<Value>& args) {
346 GCProfiler* profiler;
348 if (profiler->state != GCProfiler::GCProfilerState::kInitialized) {
366 profiler->state = GCProfiler::GCProfilerState::kStarted;
369 void GCProfiler::Stop(const FunctionCallbackInfo<v8::Value>& args) {
371 GCProfiler* profiler;
373 if (profiler->state != GCProfiler::GCProfilerState::kStarted) {
385 profiler->state = GCProfiler::GCProfilerState::kStopped;
458 // GCProfiler
460 NewFunctionTemplate(env->isolate(), GCProfiler::New);
462 SetProtoMethod(env->isolate(), t, "start", GCProfiler::Start);
463 SetProtoMethod(env->isolate(), t, "stop", GCProfiler::Stop);
464 SetConstructorFunction(context, target, "GCProfiler", t);
474 registry->Register(GCProfiler::New);
475 registry->Register(GCProfiler::Start);
476 registry->Register(GCProfiler::Stop);