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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 bool truncated() const { return truncated_; } | 498 bool truncated() const { return truncated_; } |
499 void set_truncated(bool truncated) { truncated_ = truncated; } | 499 void set_truncated(bool truncated) { truncated_ = truncated; } |
500 | 500 |
501 // Was the first frame in the stack trace executing? | 501 // Was the first frame in the stack trace executing? |
502 bool first_frame_executing() const { return first_frame_executing_; } | 502 bool first_frame_executing() const { return first_frame_executing_; } |
503 void set_first_frame_executing(bool first_frame_executing) { | 503 void set_first_frame_executing(bool first_frame_executing) { |
504 first_frame_executing_ = first_frame_executing; | 504 first_frame_executing_ = first_frame_executing; |
505 } | 505 } |
506 | 506 |
507 private: | 507 private: |
508 void FixupCaller(Isolate* isolate, | 508 void FixupCaller(Thread* thread, |
509 Isolate* vm_isolate, | 509 Isolate* vm_isolate, |
510 uword pc_marker, | 510 uword pc_marker, |
511 uword* stack_buffer); | 511 uword* stack_buffer); |
512 | 512 |
513 void CheckForMissingDartFrame(Isolate* isolate, | 513 void CheckForMissingDartFrame(Isolate* isolate, |
514 Isolate* vm_isolate, | 514 Isolate* vm_isolate, |
515 const Code& code, | 515 const Code& code, |
516 uword pc_marker, | 516 uword pc_marker, |
517 uword* stack_buffer); | 517 uword* stack_buffer); |
518 | 518 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 | 556 |
557 private: | 557 private: |
558 ZoneGrowableArray<ProcessedSample*> samples_; | 558 ZoneGrowableArray<ProcessedSample*> samples_; |
559 | 559 |
560 DISALLOW_COPY_AND_ASSIGN(ProcessedSampleBuffer); | 560 DISALLOW_COPY_AND_ASSIGN(ProcessedSampleBuffer); |
561 }; | 561 }; |
562 | 562 |
563 } // namespace dart | 563 } // namespace dart |
564 | 564 |
565 #endif // VM_PROFILER_H_ | 565 #endif // VM_PROFILER_H_ |
OLD | NEW |