Changeset 215318 in webkit for trunk/Source/JavaScriptCore/tools
- Timestamp:
- Apr 13, 2017, 7:17:00 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/tools/CodeProfiling.cpp
r213886 r215318 35 35 #endif 36 36 37 #if OS(LINUX) || OS(DARWIN)37 #if HAVE(MACHINE_CONTEXT) 38 38 #include <sys/time.h> 39 39 #endif … … 50 50 #endif 51 51 52 #if (OS(DARWIN) && !PLATFORM(GTK) && CPU(X86_64)) || (OS(LINUX) && CPU(X86))52 #if HAVE(MACHINE_CONTEXT) 53 53 // Helper function to start & stop the timer. 54 54 // Presently we're using the wall-clock timer, since this seems to give the best results. … … 68 68 #endif 69 69 70 #if (OS(DARWIN) && !PLATFORM(GTK) && CPU(X86_64)) || (OS(LINUX) && CPU(X86))70 #if HAVE(MACHINE_CONTEXT) 71 71 static void profilingTimer(int, siginfo_t*, void* uap) 72 72 { … … 137 137 return; 138 138 139 #if (OS(DARWIN) && !PLATFORM(GTK) && CPU(X86_64)) || (OS(LINUX) && CPU(X86))139 #if HAVE(MACHINE_CONTEXT) 140 140 // Regsiter a signal handler & itimer. 141 141 struct sigaction action; … … 161 161 return; 162 162 163 #if (OS(DARWIN) && !PLATFORM(GTK) && CPU(X86_64)) || (OS(LINUX) && CPU(X86))163 #if HAVE(MACHINE_CONTEXT) 164 164 // Stop profiling 165 165 setProfileTimer(0);
Note:
See TracChangeset
for help on using the changeset viewer.