v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include "v8.h"
#include "profile-generator-inl.h"
#include "profiler-extension.h"
#include "cctest.h"
#include "cpu-profiler.h"
#include "../include/v8-profiler.h"
Go to the source code of this file.
Functions | |
TEST (ProfileNodeFindOrAddChild) | |
TEST (ProfileNodeFindOrAddChildForSameFunction) | |
TEST (ProfileTreeAddPathFromStart) | |
TEST (ProfileTreeAddPathFromEnd) | |
TEST (ProfileTreeCalculateTotalTicks) | |
TEST (CodeMapAddCode) | |
TEST (CodeMapMoveAndDeleteCode) | |
TEST (RecordTickSample) | |
TEST (SampleIds) | |
TEST (NoSamples) | |
TEST (RecordStackTraceAtStartProfiling) | |
TEST (Issue51919) | |
TEST (ProfileNodeScriptId) | |
int | GetFunctionLineNumber (LocalContext *env, const char *name) |
TEST (LineNumber) | |
TEST (BailoutReason) | |
int GetFunctionLineNumber | ( | LocalContext * | env, |
const char * | name | ||
) |
Definition at line 689 of file test-profile-generator.cc.
References ProfileGenerator::code_map(), Isolate::cpu_profiler(), FATAL, CpuProfiler::generator(), CcTest::i_isolate(), Utils::OpenHandle(), and profiler().
Referenced by TEST().
TEST | ( | ProfileNodeFindOrAddChild | ) |
Definition at line 49 of file test-profile-generator.cc.
TEST | ( | ProfileNodeFindOrAddChildForSameFunction | ) |
Definition at line 73 of file test-profile-generator.cc.
TEST | ( | ProfileTreeAddPathFromStart | ) |
Definition at line 119 of file test-profile-generator.cc.
TEST | ( | ProfileTreeAddPathFromEnd | ) |
Definition at line 178 of file test-profile-generator.cc.
TEST | ( | ProfileTreeCalculateTotalTicks | ) |
Definition at line 237 of file test-profile-generator.cc.
TEST | ( | CodeMapAddCode | ) |
Definition at line 334 of file test-profile-generator.cc.
TEST | ( | CodeMapMoveAndDeleteCode | ) |
Definition at line 364 of file test-profile-generator.cc.
TEST | ( | RecordTickSample | ) |
Definition at line 401 of file test-profile-generator.cc.
References CHECK_EQ, CHECK_NE, CcTest::heap(), and NULL.
TEST | ( | SampleIds | ) |
Definition at line 467 of file test-profile-generator.cc.
References CHECK_EQ, and CcTest::heap().
TEST | ( | NoSamples | ) |
Definition at line 515 of file test-profile-generator.cc.
References CHECK_EQ, and CcTest::heap().
TEST | ( | RecordStackTraceAtStartProfiling | ) |
Definition at line 550 of file test-profile-generator.cc.
References CHECK, CHECK_EQ, CHECK_NE, Isolate::cpu_profiler(), CcTest::i_isolate(), CcTest::isolate(), CcTest::NewContext(), NULL, Print(), and profiler().
TEST | ( | Issue51919 | ) |
Definition at line 598 of file test-profile-generator.cc.
References CHECK, v8::internal::DeleteArray(), CcTest::heap(), Vector< T >::New(), OS::SNPrintF(), and Vector< T >::start().
TEST | ( | ProfileNodeScriptId | ) |
Definition at line 625 of file test-profile-generator.cc.
References CHECK_EQ, CHECK_NE, Script::Compile(), Isolate::GetCpuProfiler(), Script::GetId(), Context::GetIsolate(), CpuProfiler::GetProfilesCount(), CpuProfileNode::GetScriptId(), CcTest::isolate(), ProfileGenerator::kAnonymousFunctionName, ProfilerExtension::last_profile, CcTest::NewContext(), String::NewFromUtf8(), NULL, profiler(), and Script::Run().
TEST | ( | LineNumber | ) |
Definition at line 702 of file test-profile-generator.cc.
References CHECK_EQ, Isolate::cpu_profiler(), GetFunctionLineNumber(), CcTest::i_isolate(), CcTest::InitializeVM(), profiler(), and CpuProfiler::StartProfiling().
TEST | ( | BailoutReason | ) |
Definition at line 731 of file test-profile-generator.cc.
References CHECK, CHECK_EQ, CHECK_NE, Script::Compile(), CpuProfileNode::GetBailoutReason(), Isolate::GetCpuProfiler(), Context::GetIsolate(), CpuProfiler::GetProfilesCount(), CcTest::isolate(), ProfileGenerator::kAnonymousFunctionName, ProfilerExtension::last_profile, CcTest::NewContext(), String::NewFromUtf8(), NULL, and profiler().