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

Side by Side Diff: test/cctest/test-log.cc

Issue 7247018: Remove obsolete aggregating and non-working producers heap profilers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 the V8 project authors. All rights reserved.
2 // 2 //
3 // Tests of logging functions from log.h 3 // Tests of logging functions from log.h
4 4
5 #ifdef ENABLE_LOGGING_AND_PROFILING 5 #ifdef ENABLE_LOGGING_AND_PROFILING
6 6
7 #ifdef __linux__ 7 #ifdef __linux__
8 #include <math.h> 8 #include <math.h>
9 #include <pthread.h> 9 #include <pthread.h>
10 #include <signal.h> 10 #include <signal.h>
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 701
702 702
703 TEST(IsLoggingPreserved) { 703 TEST(IsLoggingPreserved) {
704 ScopedLoggerInitializer initialize_logger(false); 704 ScopedLoggerInitializer initialize_logger(false);
705 705
706 CHECK(LOGGER->is_logging()); 706 CHECK(LOGGER->is_logging());
707 LOGGER->ResumeProfiler(v8::PROFILER_MODULE_CPU, 1); 707 LOGGER->ResumeProfiler(v8::PROFILER_MODULE_CPU, 1);
708 CHECK(LOGGER->is_logging()); 708 CHECK(LOGGER->is_logging());
709 LOGGER->PauseProfiler(v8::PROFILER_MODULE_CPU, 1); 709 LOGGER->PauseProfiler(v8::PROFILER_MODULE_CPU, 1);
710 CHECK(LOGGER->is_logging()); 710 CHECK(LOGGER->is_logging());
711
712 CHECK(LOGGER->is_logging());
713 LOGGER->ResumeProfiler(
714 v8::PROFILER_MODULE_HEAP_STATS | v8::PROFILER_MODULE_JS_CONSTRUCTORS, 1);
715 CHECK(LOGGER->is_logging());
716 LOGGER->PauseProfiler(
717 v8::PROFILER_MODULE_HEAP_STATS | v8::PROFILER_MODULE_JS_CONSTRUCTORS, 1);
718 CHECK(LOGGER->is_logging());
719
720 CHECK(LOGGER->is_logging());
721 LOGGER->ResumeProfiler(
722 v8::PROFILER_MODULE_CPU |
723 v8::PROFILER_MODULE_HEAP_STATS | v8::PROFILER_MODULE_JS_CONSTRUCTORS, 1);
724 CHECK(LOGGER->is_logging());
725 LOGGER->PauseProfiler(
726 v8::PROFILER_MODULE_CPU |
727 v8::PROFILER_MODULE_HEAP_STATS | v8::PROFILER_MODULE_JS_CONSTRUCTORS, 1);
728 CHECK(LOGGER->is_logging());
729 } 711 }
730 712
731 713
732 static inline bool IsStringEqualTo(const char* r, const char* s) { 714 static inline bool IsStringEqualTo(const char* r, const char* s) {
733 return strncmp(r, s, strlen(r)) == 0; 715 return strncmp(r, s, strlen(r)) == 0;
734 } 716 }
735 717
736 718
737 static bool Consume(const char* str, char** buf) { 719 static bool Consume(const char* str, char** buf) {
738 if (IsStringEqualTo(str, *buf)) { 720 if (IsStringEqualTo(str, *buf)) {
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 // Make sure that all log data is written prior crash due to CHECK failure. 1170 // Make sure that all log data is written prior crash due to CHECK failure.
1189 fflush(stdout); 1171 fflush(stdout);
1190 CHECK(results_equal); 1172 CHECK(results_equal);
1191 1173
1192 env->Exit(); 1174 env->Exit();
1193 LOGGER->TearDown(); 1175 LOGGER->TearDown();
1194 i::FLAG_always_compact = saved_always_compact; 1176 i::FLAG_always_compact = saved_always_compact;
1195 } 1177 }
1196 1178
1197 #endif // ENABLE_LOGGING_AND_PROFILING 1179 #endif // ENABLE_LOGGING_AND_PROFILING
OLDNEW
« src/api.cc ('K') | « test/cctest/test-heap-profiler.cc ('k') | tools/tickprocessor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698