| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #include "vm/heap_profiler.h" | 5 #include "vm/heap_profiler.h" |
| 6 | 6 |
| 7 #include <stdio.h> | |
| 8 #include <arpa/inet.h> | |
| 9 #include <sys/time.h> | |
| 10 | |
| 11 #include "vm/dart_api_state.h" | 7 #include "vm/dart_api_state.h" |
| 12 #include "vm/object.h" | 8 #include "vm/object.h" |
| 13 #include "vm/raw_object.h" | 9 #include "vm/raw_object.h" |
| 14 #include "vm/stack_frame.h" | 10 #include "vm/stack_frame.h" |
| 15 #include "vm/unicode.h" | 11 #include "vm/unicode.h" |
| 16 | 12 |
| 17 namespace dart { | 13 namespace dart { |
| 18 | 14 |
| 19 HeapProfiler::Buffer::~Buffer() { | 15 HeapProfiler::Buffer::~Buffer() { |
| 20 delete[] data_; | 16 delete[] data_; |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 RawObject* raw_obj = handle->raw(); | 720 RawObject* raw_obj = handle->raw(); |
| 725 visitor_->VisitPointer(&raw_obj); | 721 visitor_->VisitPointer(&raw_obj); |
| 726 } | 722 } |
| 727 | 723 |
| 728 | 724 |
| 729 void HeapProfilerObjectVisitor::VisitObject(RawObject* raw_obj) { | 725 void HeapProfilerObjectVisitor::VisitObject(RawObject* raw_obj) { |
| 730 profiler_->WriteObject(raw_obj); | 726 profiler_->WriteObject(raw_obj); |
| 731 } | 727 } |
| 732 | 728 |
| 733 } // namespace dart | 729 } // namespace dart |
| OLD | NEW |