|
Perform CPU sampling by CPU sampling thread only iff processing thread is not running.
- perform CPU profiler sampling in the sampler thread as we used to;
- skip sampling in the sampling thread if processing thread is running;
- only install SIGPROF handler when CPU profiling is enabled.
BUG= v8:2364
Committed: https://code.google.com/p/v8/source/detail?r=12985
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+140 lines, -16 lines) |
Patch |
|
M |
src/cpu-profiler.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/platform.h
|
View
|
1
2
|
2 chunks |
+23 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/platform-cygwin.cc
|
View
|
1
2
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
|
M |
src/platform-freebsd.cc
|
View
|
1
2
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
|
M |
src/platform-linux.cc
|
View
|
1
2
|
6 chunks |
+46 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/platform-macos.cc
|
View
|
1
2
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
|
M |
src/platform-nullos.cc
|
View
|
1
2
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/platform-openbsd.cc
|
View
|
1
2
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
|
M |
src/platform-solaris.cc
|
View
|
1
2
|
2 chunks |
+11 lines, -1 line |
0 comments
|
Download
|
|
M |
src/platform-win32.cc
|
View
|
1
2
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
Total messages: 5 (0 generated)
|