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

Side by Side Diff: test/cctest/test-heap-profiler.cc

Issue 10038044: Build fix for Mac. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // 2 //
3 // Tests for heap profiler 3 // Tests for heap profiler
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "cctest.h" 7 #include "cctest.h"
8 #include "heap-profiler.h" 8 #include "heap-profiler.h"
9 #include "snapshot.h" 9 #include "snapshot.h"
10 #include "utils-inl.h" 10 #include "utils-inl.h"
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 700
701 class TestStatsStream : public v8::OutputStream { 701 class TestStatsStream : public v8::OutputStream {
702 public: 702 public:
703 TestStatsStream() 703 TestStatsStream()
704 : eos_signaled_(0), 704 : eos_signaled_(0),
705 numbers_written_(0), 705 numbers_written_(0),
706 entries_count_(0), 706 entries_count_(0),
707 intervals_count_(0), 707 intervals_count_(0),
708 first_interval_index_(-1) { } 708 first_interval_index_(-1) { }
709 TestStatsStream(const TestStatsStream& stream) 709 TestStatsStream(const TestStatsStream& stream)
710 : eos_signaled_(stream.eos_signaled_), 710 : v8::OutputStream(stream),
711 eos_signaled_(stream.eos_signaled_),
711 numbers_written_(stream.numbers_written_), 712 numbers_written_(stream.numbers_written_),
712 entries_count_(stream.entries_count_), 713 entries_count_(stream.entries_count_),
713 intervals_count_(stream.intervals_count_), 714 intervals_count_(stream.intervals_count_),
714 first_interval_index_(stream.first_interval_index_) { } 715 first_interval_index_(stream.first_interval_index_) { }
715 virtual ~TestStatsStream() {} 716 virtual ~TestStatsStream() {}
716 virtual void EndOfStream() { ++eos_signaled_; } 717 virtual void EndOfStream() { ++eos_signaled_; }
717 virtual WriteResult WriteAsciiChunk(char* buffer, int chars_written) { 718 virtual WriteResult WriteAsciiChunk(char* buffer, int chars_written) {
718 ASSERT(false); 719 ASSERT(false);
719 return kAbort; 720 return kAbort;
720 } 721 }
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 // Dipose the persistent handles in a different order. 1518 // Dipose the persistent handles in a different order.
1518 p_AAA.Dispose(); 1519 p_AAA.Dispose();
1519 CHECK_EQ(global_handle_count + 2, 1520 CHECK_EQ(global_handle_count + 2,
1520 v8::HeapProfiler::GetPersistentHandleCount()); 1521 v8::HeapProfiler::GetPersistentHandleCount());
1521 p_CCC.Dispose(); 1522 p_CCC.Dispose();
1522 CHECK_EQ(global_handle_count + 1, 1523 CHECK_EQ(global_handle_count + 1,
1523 v8::HeapProfiler::GetPersistentHandleCount()); 1524 v8::HeapProfiler::GetPersistentHandleCount());
1524 p_BBB.Dispose(); 1525 p_BBB.Dispose();
1525 CHECK_EQ(global_handle_count, v8::HeapProfiler::GetPersistentHandleCount()); 1526 CHECK_EQ(global_handle_count, v8::HeapProfiler::GetPersistentHandleCount());
1526 } 1527 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698