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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
604 Tick(sample); | 604 Tick(sample); |
605 if (sample != &sample_obj) { | 605 if (sample != &sample_obj) { |
606 isolate_->cpu_profiler()->FinishTickSample(); | 606 isolate_->cpu_profiler()->FinishTickSample(); |
607 } | 607 } |
608 } | 608 } |
609 | 609 |
610 | 610 |
611 bool Sampler::CanSampleOnProfilerEventsProcessorThread() { | 611 bool Sampler::CanSampleOnProfilerEventsProcessorThread() { |
612 #if defined(USE_SIGNALS) | 612 #if defined(USE_SIGNALS) |
613 return true; | 613 return true; |
614 #elif defined(_WIN32) || defined(_WIN64) || defined(__CYGWIN__) | |
Benedikt Meurer
2013/08/27 14:02:43
You don't need to test for _WIN64, since _WIN32 is
yurys
2013/08/27 15:56:27
Done.
| |
615 return true; | |
614 #else | 616 #else |
615 return false; | 617 return false; |
616 #endif | 618 #endif |
617 } | 619 } |
618 | 620 |
619 | 621 |
620 #if defined(USE_SIGNALS) | 622 #if defined(USE_SIGNALS) |
621 | 623 |
622 void Sampler::DoSample() { | 624 void Sampler::DoSample() { |
623 if (!SignalHandler::Installed()) return; | 625 if (!SignalHandler::Installed()) return; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
659 #endif // USE_SIMULATOR | 661 #endif // USE_SIMULATOR |
660 SampleStack(state); | 662 SampleStack(state); |
661 } | 663 } |
662 ResumeThread(profiled_thread); | 664 ResumeThread(profiled_thread); |
663 } | 665 } |
664 | 666 |
665 #endif // USE_SIGNALS | 667 #endif // USE_SIGNALS |
666 | 668 |
667 | 669 |
668 } } // namespace v8::internal | 670 } } // namespace v8::internal |
OLD | NEW |