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

Side by Side Diff: test/cctest/test-profile-generator.cc

Issue 1084009: Add a few tests to ProfilerEventsProcessor. (Closed)
Patch Set: Created 10 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 unified diff | Download patch
« no previous file with comments | « test/cctest/test-cpu-profiler.cc ('k') | tools/visual_studio/v8_cctest.vcproj » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // 2 //
3 // Tests of profiles generator and utilities. 3 // Tests of profiles generator and utilities.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 #include "profile-generator-inl.h" 6 #include "profile-generator-inl.h"
7 #include "cctest.h" 7 #include "cctest.h"
8 8
9 namespace i = v8::internal; 9 namespace i = v8::internal;
10 10
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 sample3.stack[1] = ToAddress(0x1610); 405 sample3.stack[1] = ToAddress(0x1610);
406 sample3.frames_count = 2; 406 sample3.frames_count = 2;
407 generator.RecordTickSample(sample3); 407 generator.RecordTickSample(sample3);
408 408
409 ProfileNode* node1 = top_down_test_helper.Walk(entry1); 409 ProfileNode* node1 = top_down_test_helper.Walk(entry1);
410 CHECK_NE(NULL, node1); 410 CHECK_NE(NULL, node1);
411 CHECK_EQ(entry1, node1->entry()); 411 CHECK_EQ(entry1, node1->entry());
412 ProfileNode* node2 = top_down_test_helper.Walk(entry1, entry1); 412 ProfileNode* node2 = top_down_test_helper.Walk(entry1, entry1);
413 CHECK_NE(NULL, node2); 413 CHECK_NE(NULL, node2);
414 CHECK_EQ(entry1, node2->entry()); 414 CHECK_EQ(entry1, node2->entry());
415 // ProfileNode* node3 = top_down_test_helper.Walk(entry1, entry2, entry3); 415 ProfileNode* node3 = top_down_test_helper.Walk(entry1, entry2, entry3);
416 // CHECK_NE(NULL, node3); 416 CHECK_NE(NULL, node3);
417 // CHECK_EQ(entry2, node3->entry()); 417 CHECK_EQ(entry3, node3->entry());
418 ProfileNode* node4 = top_down_test_helper.Walk(entry1, entry3, entry1); 418 ProfileNode* node4 = top_down_test_helper.Walk(entry1, entry3, entry1);
419 CHECK_NE(NULL, node4); 419 CHECK_NE(NULL, node4);
420 CHECK_EQ(entry1, node4->entry()); 420 CHECK_EQ(entry1, node4->entry());
421 } 421 }
OLDNEW
« no previous file with comments | « test/cctest/test-cpu-profiler.cc ('k') | tools/visual_studio/v8_cctest.vcproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698