| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 bool running_; | 138 bool running_; |
| 139 | 139 |
| 140 // Tells whether we are currently recording tick samples. | 140 // Tells whether we are currently recording tick samples. |
| 141 bool paused_; | 141 bool paused_; |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 | 144 |
| 145 // | 145 // |
| 146 // StackTracer implementation | 146 // StackTracer implementation |
| 147 // | 147 // |
| 148 void StackTracer::Trace(Isolate* isolate, TickSample* sample) { | 148 DISABLE_ASAN void StackTracer::Trace(Isolate* isolate, TickSample* sample) { |
| 149 ASSERT(isolate->IsInitialized()); | 149 ASSERT(isolate->IsInitialized()); |
| 150 | 150 |
| 151 // Avoid collecting traces while doing GC. | 151 // Avoid collecting traces while doing GC. |
| 152 if (sample->state == GC) return; | 152 if (sample->state == GC) return; |
| 153 | 153 |
| 154 const Address js_entry_sp = | 154 const Address js_entry_sp = |
| 155 Isolate::js_entry_sp(isolate->thread_local_top()); | 155 Isolate::js_entry_sp(isolate->thread_local_top()); |
| 156 if (js_entry_sp == 0) { | 156 if (js_entry_sp == 0) { |
| 157 // Not executing JS now. | 157 // Not executing JS now. |
| 158 return; | 158 return; |
| (...skipping 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1783 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { | 1783 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { |
| 1784 ASSERT(sampler->IsActive()); | 1784 ASSERT(sampler->IsActive()); |
| 1785 ScopedLock lock(active_samplers_mutex); | 1785 ScopedLock lock(active_samplers_mutex); |
| 1786 ASSERT(active_samplers_ != NULL); | 1786 ASSERT(active_samplers_ != NULL); |
| 1787 bool removed = active_samplers_->RemoveElement(sampler); | 1787 bool removed = active_samplers_->RemoveElement(sampler); |
| 1788 ASSERT(removed); | 1788 ASSERT(removed); |
| 1789 USE(removed); | 1789 USE(removed); |
| 1790 } | 1790 } |
| 1791 | 1791 |
| 1792 } } // namespace v8::internal | 1792 } } // namespace v8::internal |
| OLD | NEW |