OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 HeapEntry() { } | 519 HeapEntry() { } |
520 HeapEntry(HeapSnapshot* snapshot, | 520 HeapEntry(HeapSnapshot* snapshot, |
521 Type type, | 521 Type type, |
522 const char* name, | 522 const char* name, |
523 SnapshotObjectId id, | 523 SnapshotObjectId id, |
524 int self_size); | 524 int self_size); |
525 | 525 |
526 HeapSnapshot* snapshot() { return snapshot_; } | 526 HeapSnapshot* snapshot() { return snapshot_; } |
527 Type type() { return static_cast<Type>(type_); } | 527 Type type() { return static_cast<Type>(type_); } |
528 const char* name() { return name_; } | 528 const char* name() { return name_; } |
| 529 void set_name(const char* name) { name_ = name; } |
529 inline SnapshotObjectId id() { return id_; } | 530 inline SnapshotObjectId id() { return id_; } |
530 int self_size() { return self_size_; } | 531 int self_size() { return self_size_; } |
531 int retained_size() { return retained_size_; } | 532 int retained_size() { return retained_size_; } |
532 void add_retained_size(int size) { retained_size_ += size; } | 533 void add_retained_size(int size) { retained_size_ += size; } |
533 void set_retained_size(int size) { retained_size_ = size; } | 534 void set_retained_size(int size) { retained_size_ = size; } |
534 INLINE(int index() const); | 535 INLINE(int index() const); |
535 int postorder_index() { return postorder_index_; } | 536 int postorder_index() { return postorder_index_; } |
536 void set_postorder_index(int value) { postorder_index_ = value; } | 537 void set_postorder_index(int value) { postorder_index_ = value; } |
537 int children_count() const { return children_count_; } | 538 int children_count() const { return children_count_; } |
538 INLINE(int set_children_index(int index)); | 539 INLINE(int set_children_index(int index)); |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 | 1134 |
1134 friend class HeapSnapshotJSONSerializerEnumerator; | 1135 friend class HeapSnapshotJSONSerializerEnumerator; |
1135 friend class HeapSnapshotJSONSerializerIterator; | 1136 friend class HeapSnapshotJSONSerializerIterator; |
1136 | 1137 |
1137 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 1138 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
1138 }; | 1139 }; |
1139 | 1140 |
1140 } } // namespace v8::internal | 1141 } } // namespace v8::internal |
1141 | 1142 |
1142 #endif // V8_PROFILE_GENERATOR_H_ | 1143 #endif // V8_PROFILE_GENERATOR_H_ |
OLD | NEW |