OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_PROFILER_H_ | 5 #ifndef VM_PROFILER_H_ |
6 #define VM_PROFILER_H_ | 6 #define VM_PROFILER_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/bitfield.h" | 9 #include "vm/bitfield.h" |
10 #include "vm/code_observers.h" | 10 #include "vm/code_observers.h" |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 enum StateBits { | 333 enum StateBits { |
334 kHeadSampleBit = 0, | 334 kHeadSampleBit = 0, |
335 kLeafFrameIsDartBit = 1, | 335 kLeafFrameIsDartBit = 1, |
336 kIgnoreBit = 2, | 336 kIgnoreBit = 2, |
337 kExitFrameBit = 3, | 337 kExitFrameBit = 3, |
338 kMissingFrameInsertedBit = 4, | 338 kMissingFrameInsertedBit = 4, |
339 kTruncatedTraceBit = 5, | 339 kTruncatedTraceBit = 5, |
340 kClassAllocationSampleBit = 6, | 340 kClassAllocationSampleBit = 6, |
341 kContinuationSampleBit = 7, | 341 kContinuationSampleBit = 7, |
342 }; | 342 }; |
343 class HeadSampleBit : public BitField<bool, kHeadSampleBit, 1> {}; | 343 class HeadSampleBit : public BitField<uword, bool, kHeadSampleBit, 1> {}; |
344 class LeafFrameIsDart : public BitField<bool, kLeafFrameIsDartBit, 1> {}; | 344 class LeafFrameIsDart : |
345 class IgnoreBit : public BitField<bool, kIgnoreBit, 1> {}; | 345 public BitField<uword, bool, kLeafFrameIsDartBit, 1> {}; |
346 class ExitFrameBit : public BitField<bool, kExitFrameBit, 1> {}; | 346 class IgnoreBit : public BitField<uword, bool, kIgnoreBit, 1> {}; |
| 347 class ExitFrameBit : public BitField<uword, bool, kExitFrameBit, 1> {}; |
347 class MissingFrameInsertedBit | 348 class MissingFrameInsertedBit |
348 : public BitField<bool, kMissingFrameInsertedBit, 1> {}; | 349 : public BitField<uword, bool, kMissingFrameInsertedBit, 1> {}; |
349 class TruncatedTraceBit : public BitField<bool, kTruncatedTraceBit, 1> {}; | 350 class TruncatedTraceBit : |
| 351 public BitField<uword, bool, kTruncatedTraceBit, 1> {}; |
350 class ClassAllocationSampleBit | 352 class ClassAllocationSampleBit |
351 : public BitField<bool, kClassAllocationSampleBit, 1> {}; | 353 : public BitField<uword, bool, kClassAllocationSampleBit, 1> {}; |
352 class ContinuationSampleBit | 354 class ContinuationSampleBit |
353 : public BitField<bool, kContinuationSampleBit, 1> {}; | 355 : public BitField<uword, bool, kContinuationSampleBit, 1> {}; |
354 | 356 |
355 int64_t timestamp_; | 357 int64_t timestamp_; |
356 ThreadId tid_; | 358 ThreadId tid_; |
357 Isolate* isolate_; | 359 Isolate* isolate_; |
358 uword pc_marker_; | 360 uword pc_marker_; |
359 uword stack_buffer_[kStackBufferSizeInWords]; | 361 uword stack_buffer_[kStackBufferSizeInWords]; |
360 uword vm_tag_; | 362 uword vm_tag_; |
361 uword user_tag_; | 363 uword user_tag_; |
362 uword metadata_; | 364 uword metadata_; |
363 uword lr_; | 365 uword lr_; |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 private: | 634 private: |
633 ZoneGrowableArray<ProcessedSample*> samples_; | 635 ZoneGrowableArray<ProcessedSample*> samples_; |
634 CodeLookupTable* code_lookup_table_; | 636 CodeLookupTable* code_lookup_table_; |
635 | 637 |
636 DISALLOW_COPY_AND_ASSIGN(ProcessedSampleBuffer); | 638 DISALLOW_COPY_AND_ASSIGN(ProcessedSampleBuffer); |
637 }; | 639 }; |
638 | 640 |
639 } // namespace dart | 641 } // namespace dart |
640 | 642 |
641 #endif // VM_PROFILER_H_ | 643 #endif // VM_PROFILER_H_ |
OLD | NEW |