OLD | NEW |
1 // Copyright 2012 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 |
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1171 const int vm_tgid_; | 1171 const int vm_tgid_; |
1172 const int interval_; | 1172 const int interval_; |
1173 RuntimeProfilerRateLimiter rate_limiter_; | 1173 RuntimeProfilerRateLimiter rate_limiter_; |
1174 | 1174 |
1175 // Protects the process wide state below. | 1175 // Protects the process wide state below. |
1176 static Mutex* mutex_; | 1176 static Mutex* mutex_; |
1177 static SignalSender* instance_; | 1177 static SignalSender* instance_; |
1178 static bool signal_handler_installed_; | 1178 static bool signal_handler_installed_; |
1179 static struct sigaction old_signal_handler_; | 1179 static struct sigaction old_signal_handler_; |
1180 | 1180 |
| 1181 private: |
1181 DISALLOW_COPY_AND_ASSIGN(SignalSender); | 1182 DISALLOW_COPY_AND_ASSIGN(SignalSender); |
1182 }; | 1183 }; |
1183 | 1184 |
1184 | 1185 |
1185 Mutex* SignalSender::mutex_ = OS::CreateMutex(); | 1186 Mutex* SignalSender::mutex_ = OS::CreateMutex(); |
1186 SignalSender* SignalSender::instance_ = NULL; | 1187 SignalSender* SignalSender::instance_ = NULL; |
1187 struct sigaction SignalSender::old_signal_handler_; | 1188 struct sigaction SignalSender::old_signal_handler_; |
1188 bool SignalSender::signal_handler_installed_ = false; | 1189 bool SignalSender::signal_handler_installed_ = false; |
1189 | 1190 |
1190 | 1191 |
(...skipping 21 matching lines...) Expand all Loading... |
1212 | 1213 |
1213 | 1214 |
1214 void Sampler::Stop() { | 1215 void Sampler::Stop() { |
1215 ASSERT(IsActive()); | 1216 ASSERT(IsActive()); |
1216 SignalSender::RemoveActiveSampler(this); | 1217 SignalSender::RemoveActiveSampler(this); |
1217 SetActive(false); | 1218 SetActive(false); |
1218 } | 1219 } |
1219 | 1220 |
1220 | 1221 |
1221 } } // namespace v8::internal | 1222 } } // namespace v8::internal |
OLD | NEW |