Index: test/cctest/test-log.cc |
diff --git a/test/cctest/test-log.cc b/test/cctest/test-log.cc |
index 85ff331a622f41d82b29a0fb3faaed3dff237825..eca2c2b67982799eb063e1d644217d1e4d0b604b 100644 |
--- a/test/cctest/test-log.cc |
+++ b/test/cctest/test-log.cc |
@@ -202,9 +202,9 @@ static int CheckThatProfilerWorks(int log_pos) { |
// Force compiler to generate new code by parametrizing source. |
EmbeddedVector<char, 100> script_src; |
i::OS::SNPrintF(script_src, |
- "for (var i = 0; i < 1000; ++i) { " |
- "(function(x) { return %d * x; })(i); }", |
- log_pos); |
+ "function f%d(x) { return %d * x; }" |
+ "for (var i = 0; i < 10000; ++i) { f%d(i); }", |
+ log_pos, log_pos, log_pos); |
// Run code for 200 msecs to get some ticks. |
const double end_time = i::OS::TimeCurrentMillis() + 200; |
while (i::OS::TimeCurrentMillis() < end_time) { |
@@ -228,6 +228,7 @@ static int CheckThatProfilerWorks(int log_pos) { |
log_pos += log_size; |
// Check buffer contents. |
buffer[log_size] = '\0'; |
+ printf("%s", buffer.start()); |
const char* tick = "\ntick,"; |
CHECK_NE(NULL, strstr(buffer.start(), code_creation)); |
const bool ticks_found = strstr(buffer.start(), tick) != NULL; |