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_ISOLATE_H_ | 5 #ifndef VM_ISOLATE_H_ |
6 #define VM_ISOLATE_H_ | 6 #define VM_ISOLATE_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 #include "platform/thread.h" | 10 #include "platform/thread.h" |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
454 TraceBuffer* trace_buffer() { | 454 TraceBuffer* trace_buffer() { |
455 return trace_buffer_; | 455 return trace_buffer_; |
456 } | 456 } |
457 | 457 |
458 DeoptContext* deopt_context() const { return deopt_context_; } | 458 DeoptContext* deopt_context() const { return deopt_context_; } |
459 void set_deopt_context(DeoptContext* value) { | 459 void set_deopt_context(DeoptContext* value) { |
460 ASSERT(value == NULL || deopt_context_ == NULL); | 460 ASSERT(value == NULL || deopt_context_ == NULL); |
461 deopt_context_ = value; | 461 deopt_context_ = value; |
462 } | 462 } |
463 | 463 |
464 void timestampLastAllocationProfileAccumulatorReset() { | |
koda
2014/06/17 21:04:07
Naming convention: start with uppercase.
Also, pl
Cutch
2014/06/18 14:35:04
Done.
| |
465 timestamp_last_allocationprofile_accumulator_reset_ = | |
466 OS::GetCurrentTimeMillis(); | |
467 } | |
468 | |
469 int64_t timestamp_last_allocationprofile_accumulator_reset() const { | |
470 return timestamp_last_allocationprofile_accumulator_reset_; | |
471 } | |
472 | |
473 void timestampLastAllocationProfileGC() { | |
koda
2014/06/17 21:04:07
Ditto.
Cutch
2014/06/18 14:35:04
Done.
| |
474 timestamp_last_allocationprofile_gc_ = OS::GetCurrentTimeMillis(); | |
475 } | |
476 | |
477 int64_t timestamp_last_allocationprofile_gc() const { | |
478 return timestamp_last_allocationprofile_gc_; | |
479 } | |
480 | |
464 intptr_t BlockClassFinalization() { | 481 intptr_t BlockClassFinalization() { |
465 ASSERT(defer_finalization_count_ >= 0); | 482 ASSERT(defer_finalization_count_ >= 0); |
466 return defer_finalization_count_++; | 483 return defer_finalization_count_++; |
467 } | 484 } |
468 | 485 |
469 intptr_t UnblockClassFinalization() { | 486 intptr_t UnblockClassFinalization() { |
470 ASSERT(defer_finalization_count_ > 0); | 487 ASSERT(defer_finalization_count_ > 0); |
471 return defer_finalization_count_--; | 488 return defer_finalization_count_--; |
472 } | 489 } |
473 | 490 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
596 bool is_runnable_; | 613 bool is_runnable_; |
597 Dart_GcPrologueCallback gc_prologue_callback_; | 614 Dart_GcPrologueCallback gc_prologue_callback_; |
598 Dart_GcEpilogueCallback gc_epilogue_callback_; | 615 Dart_GcEpilogueCallback gc_epilogue_callback_; |
599 intptr_t defer_finalization_count_; | 616 intptr_t defer_finalization_count_; |
600 DeoptContext* deopt_context_; | 617 DeoptContext* deopt_context_; |
601 | 618 |
602 // Status support. | 619 // Status support. |
603 char* stacktrace_; | 620 char* stacktrace_; |
604 intptr_t stack_frame_index_; | 621 intptr_t stack_frame_index_; |
605 | 622 |
623 // Timestamps of last operation via service. | |
koda
2014/06/17 21:04:07
Longer-term, I wish we had a different way of asso
Cutch
2014/06/18 14:35:04
I had the same thought. Agreed.
| |
624 int64_t timestamp_last_allocationprofile_accumulator_reset_; | |
625 int64_t timestamp_last_allocationprofile_gc_; | |
626 | |
606 bool cha_used_; | 627 bool cha_used_; |
607 | 628 |
608 // Ring buffer of objects assigned an id. | 629 // Ring buffer of objects assigned an id. |
609 ObjectIdRing* object_id_ring_; | 630 ObjectIdRing* object_id_ring_; |
610 | 631 |
611 // Trace buffer support. | 632 // Trace buffer support. |
612 TraceBuffer* trace_buffer_; | 633 TraceBuffer* trace_buffer_; |
613 | 634 |
614 IsolateProfilerData* profiler_data_; | 635 IsolateProfilerData* profiler_data_; |
615 Mutex profiler_data_mutex_; | 636 Mutex profiler_data_mutex_; |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
756 char* script_url_; | 777 char* script_url_; |
757 char* library_url_; | 778 char* library_url_; |
758 char* class_name_; | 779 char* class_name_; |
759 char* function_name_; | 780 char* function_name_; |
760 char* exception_callback_name_; | 781 char* exception_callback_name_; |
761 }; | 782 }; |
762 | 783 |
763 } // namespace dart | 784 } // namespace dart |
764 | 785 |
765 #endif // VM_ISOLATE_H_ | 786 #endif // VM_ISOLATE_H_ |
OLD | NEW |