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

Side by Side Diff: src/profiler/sampler.cc

Issue 1356223004: Move heap and CPU profilers into a dedicated directory. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebaseline Created 5 years, 2 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
« no previous file with comments | « src/profiler/sampler.h ('k') | src/profiler/unbound-queue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/profiler/sampler.h ('k') | src/profiler/unbound-queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698