| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 }; | 422 }; |
| 423 | 423 |
| 424 | 424 |
| 425 class HeapSnapshot; | 425 class HeapSnapshot; |
| 426 class HeapEntry; | 426 class HeapEntry; |
| 427 | 427 |
| 428 | 428 |
| 429 class HeapGraphEdge { | 429 class HeapGraphEdge { |
| 430 public: | 430 public: |
| 431 enum Type { | 431 enum Type { |
| 432 CONTEXT_VARIABLE, | 432 CONTEXT_VARIABLE = v8::HeapGraphEdge::CONTEXT_VARIABLE, |
| 433 ELEMENT, | 433 ELEMENT = v8::HeapGraphEdge::ELEMENT, |
| 434 PROPERTY | 434 PROPERTY = v8::HeapGraphEdge::PROPERTY |
| 435 }; | 435 }; |
| 436 | 436 |
| 437 HeapGraphEdge(Type type, const char* name, HeapEntry* from, HeapEntry* to); | 437 HeapGraphEdge(Type type, const char* name, HeapEntry* from, HeapEntry* to); |
| 438 HeapGraphEdge(int index, HeapEntry* from, HeapEntry* to); | 438 HeapGraphEdge(int index, HeapEntry* from, HeapEntry* to); |
| 439 | 439 |
| 440 Type type() const { return type_; } | 440 Type type() const { return type_; } |
| 441 int index() const { | 441 int index() const { |
| 442 ASSERT(type_ == ELEMENT); | 442 ASSERT(type_ == ELEMENT); |
| 443 return index_; | 443 return index_; |
| 444 } | 444 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 461 DISALLOW_COPY_AND_ASSIGN(HeapGraphEdge); | 461 DISALLOW_COPY_AND_ASSIGN(HeapGraphEdge); |
| 462 }; | 462 }; |
| 463 | 463 |
| 464 | 464 |
| 465 class HeapGraphPath; | 465 class HeapGraphPath; |
| 466 class CachedHeapGraphPath; | 466 class CachedHeapGraphPath; |
| 467 | 467 |
| 468 class HeapEntry { | 468 class HeapEntry { |
| 469 public: | 469 public: |
| 470 enum Type { | 470 enum Type { |
| 471 INTERNAL, | 471 INTERNAL = v8::HeapGraphNode::INTERNAL, |
| 472 ARRAY, | 472 ARRAY = v8::HeapGraphNode::ARRAY, |
| 473 STRING, | 473 STRING = v8::HeapGraphNode::STRING, |
| 474 JS_OBJECT, | 474 OBJECT = v8::HeapGraphNode::OBJECT, |
| 475 CODE, | 475 CODE = v8::HeapGraphNode::CODE, |
| 476 CLOSURE | 476 CLOSURE = v8::HeapGraphNode::CLOSURE |
| 477 }; | 477 }; |
| 478 | 478 |
| 479 explicit HeapEntry(HeapSnapshot* snapshot) | 479 explicit HeapEntry(HeapSnapshot* snapshot) |
| 480 : snapshot_(snapshot), | 480 : snapshot_(snapshot), |
| 481 visited_(false), | 481 visited_(false), |
| 482 type_(INTERNAL), | 482 type_(INTERNAL), |
| 483 name_(""), | 483 name_(""), |
| 484 next_auto_index_(0), | 484 next_auto_index_(0), |
| 485 self_size_(0), | 485 self_size_(0), |
| 486 security_token_id_(TokenEnumerator::kNoSecurityToken), | 486 security_token_id_(TokenEnumerator::kNoSecurityToken), |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 HeapSnapshot* snapshot_; | 723 HeapSnapshot* snapshot_; |
| 724 | 724 |
| 725 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotGenerator); | 725 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotGenerator); |
| 726 }; | 726 }; |
| 727 | 727 |
| 728 } } // namespace v8::internal | 728 } } // namespace v8::internal |
| 729 | 729 |
| 730 #endif // ENABLE_LOGGING_AND_PROFILING | 730 #endif // ENABLE_LOGGING_AND_PROFILING |
| 731 | 731 |
| 732 #endif // V8_PROFILE_GENERATOR_H_ | 732 #endif // V8_PROFILE_GENERATOR_H_ |
| OLD | NEW |