| 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 public: | 518 public: |
| 519 enum Type { | 519 enum Type { |
| 520 kHidden = v8::HeapGraphNode::kHidden, | 520 kHidden = v8::HeapGraphNode::kHidden, |
| 521 kArray = v8::HeapGraphNode::kArray, | 521 kArray = v8::HeapGraphNode::kArray, |
| 522 kString = v8::HeapGraphNode::kString, | 522 kString = v8::HeapGraphNode::kString, |
| 523 kObject = v8::HeapGraphNode::kObject, | 523 kObject = v8::HeapGraphNode::kObject, |
| 524 kCode = v8::HeapGraphNode::kCode, | 524 kCode = v8::HeapGraphNode::kCode, |
| 525 kClosure = v8::HeapGraphNode::kClosure, | 525 kClosure = v8::HeapGraphNode::kClosure, |
| 526 kRegExp = v8::HeapGraphNode::kRegExp, | 526 kRegExp = v8::HeapGraphNode::kRegExp, |
| 527 kHeapNumber = v8::HeapGraphNode::kHeapNumber, | 527 kHeapNumber = v8::HeapGraphNode::kHeapNumber, |
| 528 kNative = v8::HeapGraphNode::kNative | 528 kNative = v8::HeapGraphNode::kNative, |
| 529 kArtificial = v8::HeapGraphNode::kArtificial |
| 529 }; | 530 }; |
| 530 | 531 |
| 531 HeapEntry() { } | 532 HeapEntry() { } |
| 532 void Init(HeapSnapshot* snapshot, | 533 void Init(HeapSnapshot* snapshot, |
| 533 Type type, | 534 Type type, |
| 534 const char* name, | 535 const char* name, |
| 535 uint64_t id, | 536 uint64_t id, |
| 536 int self_size, | 537 int self_size, |
| 537 int children_count, | 538 int children_count, |
| 538 int retainers_count); | 539 int retainers_count); |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1165 | 1166 |
| 1166 friend class HeapSnapshotJSONSerializerEnumerator; | 1167 friend class HeapSnapshotJSONSerializerEnumerator; |
| 1167 friend class HeapSnapshotJSONSerializerIterator; | 1168 friend class HeapSnapshotJSONSerializerIterator; |
| 1168 | 1169 |
| 1169 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 1170 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
| 1170 }; | 1171 }; |
| 1171 | 1172 |
| 1172 } } // namespace v8::internal | 1173 } } // namespace v8::internal |
| 1173 | 1174 |
| 1174 #endif // V8_PROFILE_GENERATOR_H_ | 1175 #endif // V8_PROFILE_GENERATOR_H_ |
| OLD | NEW |