| 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/code_observers.h" | 9 #include "vm/code_observers.h" |
| 10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 // Each Sample holds a stack trace from an isolate. | 115 // Each Sample holds a stack trace from an isolate. |
| 116 class Sample { | 116 class Sample { |
| 117 public: | 117 public: |
| 118 void Init(Isolate* isolate, int64_t timestamp, ThreadId tid) { | 118 void Init(Isolate* isolate, int64_t timestamp, ThreadId tid) { |
| 119 timestamp_ = timestamp; | 119 timestamp_ = timestamp; |
| 120 tid_ = tid; | 120 tid_ = tid; |
| 121 isolate_ = isolate; | 121 isolate_ = isolate; |
| 122 pc_marker_ = 0; | 122 pc_marker_ = 0; |
| 123 vm_tag_ = VMTag::kInvalidTagId; | 123 vm_tag_ = VMTag::kInvalidTagId; |
| 124 user_tag_ = UserTags::kNoUserTag; | 124 user_tag_ = UserTags::kDefaultUserTag; |
| 125 sp_ = 0; | 125 sp_ = 0; |
| 126 fp_ = 0; | 126 fp_ = 0; |
| 127 state_ = 0; | 127 state_ = 0; |
| 128 for (intptr_t i = 0; i < kSampleFramesSize; i++) { | 128 for (intptr_t i = 0; i < kSampleFramesSize; i++) { |
| 129 pcs_[i] = 0; | 129 pcs_[i] = 0; |
| 130 } | 130 } |
| 131 } | 131 } |
| 132 | 132 |
| 133 // Isolate sample was taken from. | 133 // Isolate sample was taken from. |
| 134 Isolate* isolate() const { | 134 Isolate* isolate() const { |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 intptr_t capacity_; | 297 intptr_t capacity_; |
| 298 uintptr_t cursor_; | 298 uintptr_t cursor_; |
| 299 | 299 |
| 300 DISALLOW_COPY_AND_ASSIGN(SampleBuffer); | 300 DISALLOW_COPY_AND_ASSIGN(SampleBuffer); |
| 301 }; | 301 }; |
| 302 | 302 |
| 303 | 303 |
| 304 } // namespace dart | 304 } // namespace dart |
| 305 | 305 |
| 306 #endif // VM_PROFILER_H_ | 306 #endif // VM_PROFILER_H_ |
| OLD | NEW |