| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_SAMPLER_H_ | 5 #ifndef V8_SAMPLER_H_ |
| 6 #define V8_SAMPLER_H_ | 6 #define V8_SAMPLER_H_ |
| 7 | 7 |
| 8 #include "atomicops.h" | 8 #include "atomicops.h" |
| 9 #include "frames.h" | 9 #include "frames.h" |
| 10 #include "globals.h" | 10 #include "v8globals.h" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 | 14 |
| 15 class Isolate; | 15 class Isolate; |
| 16 | 16 |
| 17 // ---------------------------------------------------------------------------- | 17 // ---------------------------------------------------------------------------- |
| 18 // Sampler | 18 // Sampler |
| 19 // | 19 // |
| 20 // A sampler periodically samples the state of the VM and optionally | 20 // A sampler periodically samples the state of the VM and optionally |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 bool is_counting_samples_; | 119 bool is_counting_samples_; |
| 120 // Counts stack samples taken in JS VM state. | 120 // Counts stack samples taken in JS VM state. |
| 121 unsigned js_and_external_sample_count_; | 121 unsigned js_and_external_sample_count_; |
| 122 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 122 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 | 125 |
| 126 } } // namespace v8::internal | 126 } } // namespace v8::internal |
| 127 | 127 |
| 128 #endif // V8_SAMPLER_H_ | 128 #endif // V8_SAMPLER_H_ |
| OLD | NEW |