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

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

Issue 1582004: C++ profiles processor: wire up to VM. (Closed)
Patch Set: Created 10 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
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>
11 #include <unistd.h> 11 #include <unistd.h>
12 #endif // __linux__ 12 #endif // __linux__
13 13
14 #include "v8.h" 14 #include "v8.h"
15 #include "log.h" 15 #include "log.h"
16 #include "cpu-profiler.h"
16 #include "v8threads.h" 17 #include "v8threads.h"
17 #include "cctest.h" 18 #include "cctest.h"
18 19
19 using v8::internal::Address; 20 using v8::internal::Address;
20 using v8::internal::EmbeddedVector; 21 using v8::internal::EmbeddedVector;
21 using v8::internal::Logger; 22 using v8::internal::Logger;
22 using v8::internal::StrLength; 23 using v8::internal::StrLength;
23 24
24 namespace i = v8::internal; 25 namespace i = v8::internal;
25 26
(...skipping 1162 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. 1189 // Make sure that all log data is written prior crash due to CHECK failure.
1189 fflush(stdout); 1190 fflush(stdout);
1190 CHECK(results_equal); 1191 CHECK(results_equal);
1191 1192
1192 env->Exit(); 1193 env->Exit();
1193 Logger::TearDown(); 1194 Logger::TearDown();
1194 i::FLAG_always_compact = saved_always_compact; 1195 i::FLAG_always_compact = saved_always_compact;
1195 } 1196 }
1196 1197
1197 #endif // ENABLE_LOGGING_AND_PROFILING 1198 #endif // ENABLE_LOGGING_AND_PROFILING
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698