OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 | 752 |
753 const int interval_; | 753 const int interval_; |
754 RuntimeProfilerRateLimiter rate_limiter_; | 754 RuntimeProfilerRateLimiter rate_limiter_; |
755 | 755 |
756 // Protects the process wide state below. | 756 // Protects the process wide state below. |
757 static Mutex* mutex_; | 757 static Mutex* mutex_; |
758 static SignalSender* instance_; | 758 static SignalSender* instance_; |
759 static bool signal_handler_installed_; | 759 static bool signal_handler_installed_; |
760 static struct sigaction old_signal_handler_; | 760 static struct sigaction old_signal_handler_; |
761 | 761 |
| 762 private: |
762 DISALLOW_COPY_AND_ASSIGN(SignalSender); | 763 DISALLOW_COPY_AND_ASSIGN(SignalSender); |
763 }; | 764 }; |
764 | 765 |
765 Mutex* SignalSender::mutex_ = OS::CreateMutex(); | 766 Mutex* SignalSender::mutex_ = OS::CreateMutex(); |
766 SignalSender* SignalSender::instance_ = NULL; | 767 SignalSender* SignalSender::instance_ = NULL; |
767 struct sigaction SignalSender::old_signal_handler_; | 768 struct sigaction SignalSender::old_signal_handler_; |
768 bool SignalSender::signal_handler_installed_ = false; | 769 bool SignalSender::signal_handler_installed_ = false; |
769 | 770 |
770 | 771 |
771 Sampler::Sampler(Isolate* isolate, int interval) | 772 Sampler::Sampler(Isolate* isolate, int interval) |
(...skipping 19 matching lines...) Expand all Loading... |
791 } | 792 } |
792 | 793 |
793 | 794 |
794 void Sampler::Stop() { | 795 void Sampler::Stop() { |
795 ASSERT(IsActive()); | 796 ASSERT(IsActive()); |
796 SignalSender::RemoveActiveSampler(this); | 797 SignalSender::RemoveActiveSampler(this); |
797 SetActive(false); | 798 SetActive(false); |
798 } | 799 } |
799 | 800 |
800 } } // namespace v8::internal | 801 } } // namespace v8::internal |
OLD | NEW |