OLD | NEW |
1 // Copyright 2006-2008 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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 | 833 |
834 const int interval_; | 834 const int interval_; |
835 RuntimeProfilerRateLimiter rate_limiter_; | 835 RuntimeProfilerRateLimiter rate_limiter_; |
836 | 836 |
837 // Protects the process wide state below. | 837 // Protects the process wide state below. |
838 static Mutex* mutex_; | 838 static Mutex* mutex_; |
839 static SignalSender* instance_; | 839 static SignalSender* instance_; |
840 static bool signal_handler_installed_; | 840 static bool signal_handler_installed_; |
841 static struct sigaction old_signal_handler_; | 841 static struct sigaction old_signal_handler_; |
842 | 842 |
| 843 private: |
843 DISALLOW_COPY_AND_ASSIGN(SignalSender); | 844 DISALLOW_COPY_AND_ASSIGN(SignalSender); |
844 }; | 845 }; |
845 | 846 |
846 Mutex* SignalSender::mutex_ = OS::CreateMutex(); | 847 Mutex* SignalSender::mutex_ = OS::CreateMutex(); |
847 SignalSender* SignalSender::instance_ = NULL; | 848 SignalSender* SignalSender::instance_ = NULL; |
848 struct sigaction SignalSender::old_signal_handler_; | 849 struct sigaction SignalSender::old_signal_handler_; |
849 bool SignalSender::signal_handler_installed_ = false; | 850 bool SignalSender::signal_handler_installed_ = false; |
850 | 851 |
851 | 852 |
852 Sampler::Sampler(Isolate* isolate, int interval) | 853 Sampler::Sampler(Isolate* isolate, int interval) |
(...skipping 20 matching lines...) Expand all Loading... |
873 | 874 |
874 | 875 |
875 void Sampler::Stop() { | 876 void Sampler::Stop() { |
876 ASSERT(IsActive()); | 877 ASSERT(IsActive()); |
877 SignalSender::RemoveActiveSampler(this); | 878 SignalSender::RemoveActiveSampler(this); |
878 SetActive(false); | 879 SetActive(false); |
879 } | 880 } |
880 | 881 |
881 | 882 |
882 } } // namespace v8::internal | 883 } } // namespace v8::internal |
OLD | NEW |