OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/sampler.h" | 5 #include "src/profiler/sampler.h" |
6 | 6 |
7 #if V8_OS_POSIX && !V8_OS_CYGWIN | 7 #if V8_OS_POSIX && !V8_OS_CYGWIN |
8 | 8 |
9 #define USE_SIGNALS | 9 #define USE_SIGNALS |
10 | 10 |
11 #include <errno.h> | 11 #include <errno.h> |
12 #include <pthread.h> | 12 #include <pthread.h> |
13 #include <signal.h> | 13 #include <signal.h> |
14 #include <sys/time.h> | 14 #include <sys/time.h> |
15 | 15 |
(...skipping 20 matching lines...) Expand all Loading... |
36 #include <asm/sigcontext.h> // NOLINT | 36 #include <asm/sigcontext.h> // NOLINT |
37 #endif | 37 #endif |
38 | 38 |
39 #elif V8_OS_WIN || V8_OS_CYGWIN | 39 #elif V8_OS_WIN || V8_OS_CYGWIN |
40 | 40 |
41 #include "src/base/win32-headers.h" | 41 #include "src/base/win32-headers.h" |
42 | 42 |
43 #endif | 43 #endif |
44 | 44 |
45 #include "src/base/platform/platform.h" | 45 #include "src/base/platform/platform.h" |
46 #include "src/cpu-profiler-inl.h" | |
47 #include "src/flags.h" | 46 #include "src/flags.h" |
48 #include "src/frames-inl.h" | 47 #include "src/frames-inl.h" |
49 #include "src/log.h" | 48 #include "src/log.h" |
| 49 #include "src/profiler/cpu-profiler-inl.h" |
50 #include "src/simulator.h" | 50 #include "src/simulator.h" |
51 #include "src/v8threads.h" | 51 #include "src/v8threads.h" |
52 #include "src/vm-state-inl.h" | 52 #include "src/vm-state-inl.h" |
53 | 53 |
54 | 54 |
55 #if V8_OS_ANDROID && !defined(__BIONIC_HAVE_UCONTEXT_T) | 55 #if V8_OS_ANDROID && !defined(__BIONIC_HAVE_UCONTEXT_T) |
56 | 56 |
57 // Not all versions of Android's C library provide ucontext_t. | 57 // Not all versions of Android's C library provide ucontext_t. |
58 // Detect this and provide custom but compatible definitions. Note that these | 58 // Detect this and provide custom but compatible definitions. Note that these |
59 // follow the GLibc naming convention to access register values from | 59 // follow the GLibc naming convention to access register values from |
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
849 SampleStack(state); | 849 SampleStack(state); |
850 } | 850 } |
851 ResumeThread(profiled_thread); | 851 ResumeThread(profiled_thread); |
852 } | 852 } |
853 | 853 |
854 #endif // USE_SIGNALS | 854 #endif // USE_SIGNALS |
855 | 855 |
856 | 856 |
857 } // namespace internal | 857 } // namespace internal |
858 } // namespace v8 | 858 } // namespace v8 |
OLD | NEW |