OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 Tick(sample); | 602 Tick(sample); |
603 if (sample != &sample_obj) { | 603 if (sample != &sample_obj) { |
604 isolate_->cpu_profiler()->FinishTickSample(); | 604 isolate_->cpu_profiler()->FinishTickSample(); |
605 } | 605 } |
606 } | 606 } |
607 | 607 |
608 | 608 |
609 bool Sampler::CanSampleOnProfilerEventsProcessorThread() { | 609 bool Sampler::CanSampleOnProfilerEventsProcessorThread() { |
610 #if defined(USE_SIGNALS) | 610 #if defined(USE_SIGNALS) |
611 return true; | 611 return true; |
| 612 #elif V8_OS_WIN || V8_OS_CYGWIN |
| 613 return true; |
612 #else | 614 #else |
613 return false; | 615 return false; |
614 #endif | 616 #endif |
615 } | 617 } |
616 | 618 |
617 | 619 |
618 #if defined(USE_SIGNALS) | 620 #if defined(USE_SIGNALS) |
619 | 621 |
620 void Sampler::DoSample() { | 622 void Sampler::DoSample() { |
621 if (!SignalHandler::Installed()) return; | 623 if (!SignalHandler::Installed()) return; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 #endif // USE_SIMULATOR | 659 #endif // USE_SIMULATOR |
658 SampleStack(state); | 660 SampleStack(state); |
659 } | 661 } |
660 ResumeThread(profiled_thread); | 662 ResumeThread(profiled_thread); |
661 } | 663 } |
662 | 664 |
663 #endif // USE_SIGNALS | 665 #endif // USE_SIGNALS |
664 | 666 |
665 | 667 |
666 } } // namespace v8::internal | 668 } } // namespace v8::internal |
OLD | NEW |