DescriptionSend SIGPROF signals on the profiler event processor thread
The patch is based on the previous one that was rolled out: https://code.google.com/p/v8/source/detail?r=12985
On Linux sampling for CPU profiler is initiated on the profiler event processor thread, other platforms to follow.
CPU profiler continues to use SamplingCircularQueue, we will replave it with a single sample buffer when Mac and Win ports support profiling on the event processing thread.
When --prof option is specified profiling is initiated either on the profiler event processor thread if CPU profiler is on or on the SignalSender thread as it used to if no CPU profiles are being collected.
ProfilerEventsProcessor::ProcessEventsAndDoSample now waits in a tight loop, processing collected samples until sampling interval expires. To save CPU resources I'm planning to change that to use nanosleep as only one sample is expected in the queue at any point.
BUG=v8:2364
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=13735
Patch Set 1 #Patch Set 2 : Added method stubs on non-linux platforms #
Total comments: 2
Patch Set 3 : Changed int distance parameter to boolean #
Total comments: 2
Patch Set 4 : Fixed typo: Profler->Profiler #
Messages
Total messages: 7 (0 generated)
|