aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/test-profile-generator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/test-profile-generator.cc')
-rw-r--r--deps/v8/test/cctest/test-profile-generator.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/deps/v8/test/cctest/test-profile-generator.cc b/deps/v8/test/cctest/test-profile-generator.cc
index f849d404ae..a0733ef685 100644
--- a/deps/v8/test/cctest/test-profile-generator.cc
+++ b/deps/v8/test/cctest/test-profile-generator.cc
@@ -782,16 +782,12 @@ TEST(RecordStackTraceAtStartProfiling) {
CpuProfiler::GetProfile(NULL, 0);
const ProfileTree* topDown = profile->top_down();
const ProfileNode* current = topDown->root();
- const_cast<ProfileNode*>(current)->Print(0);
// The tree should look like this:
// (root)
// (anonymous function)
// a
// b
// c
- // There can also be:
- // startProfiling
- // if the sampler managed to get a tick.
current = PickChild(current, "(anonymous function)");
CHECK_NE(NULL, const_cast<ProfileNode*>(current));
current = PickChild(current, "a");
@@ -800,12 +796,7 @@ TEST(RecordStackTraceAtStartProfiling) {
CHECK_NE(NULL, const_cast<ProfileNode*>(current));
current = PickChild(current, "c");
CHECK_NE(NULL, const_cast<ProfileNode*>(current));
- CHECK(current->children()->length() == 0 ||
- current->children()->length() == 1);
- if (current->children()->length() == 1) {
- current = PickChild(current, "startProfiling");
- CHECK_EQ(0, current->children()->length());
- }
+ CHECK_EQ(0, current->children()->length());
}