Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Unified Diff: test/cctest/test-cpu-profiler.cc

Issue 12825003: Remove bottom-up CPU profile (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Updated CpuProfile class comment Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/profile-generator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-cpu-profiler.cc
diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc
index 114a8e725f19e46e38f7f90f9eb83763a4e77e0e..6cf76e85e58cae66ad5460b496142e79aec88b8b 100644
--- a/test/cctest/test-cpu-profiler.cc
+++ b/test/cctest/test-cpu-profiler.cc
@@ -211,31 +211,6 @@ TEST(TickEvents) {
const i::List<ProfileNode*>* top_down_ddd_children =
top_down_stub_children->last()->children();
CHECK_EQ(0, top_down_ddd_children->length());
-
- const i::List<ProfileNode*>* bottom_up_root_children_unsorted =
- profile->bottom_up()->root()->children();
- CHECK_EQ(3, bottom_up_root_children_unsorted->length());
- i::List<ProfileNode*> bottom_up_root_children(3);
- bottom_up_root_children.AddAll(*bottom_up_root_children_unsorted);
- bottom_up_root_children.Sort(&CompareProfileNodes);
- CHECK_EQ("5", bottom_up_root_children[0]->entry()->name());
- CHECK_EQ("bbb", bottom_up_root_children[1]->entry()->name());
- CHECK_EQ("ddd", bottom_up_root_children[2]->entry()->name());
- const i::List<ProfileNode*>* bottom_up_stub_children =
- bottom_up_root_children[0]->children();
- CHECK_EQ(1, bottom_up_stub_children->length());
- CHECK_EQ("bbb", bottom_up_stub_children->last()->entry()->name());
- const i::List<ProfileNode*>* bottom_up_bbb_children =
- bottom_up_root_children[1]->children();
- CHECK_EQ(0, bottom_up_bbb_children->length());
- const i::List<ProfileNode*>* bottom_up_ddd_children =
- bottom_up_root_children[2]->children();
- CHECK_EQ(1, bottom_up_ddd_children->length());
- CHECK_EQ("5", bottom_up_ddd_children->last()->entry()->name());
- const i::List<ProfileNode*>* bottom_up_ddd_stub_children =
- bottom_up_ddd_children->last()->children();
- CHECK_EQ(1, bottom_up_ddd_stub_children->length());
- CHECK_EQ("bbb", bottom_up_ddd_stub_children->last()->entry()->name());
}
« no previous file with comments | « src/profile-generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698