| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 int GetRetainersCount() const; | 300 int GetRetainersCount() const; |
| 301 | 301 |
| 302 /** Returns a retainer by index. */ | 302 /** Returns a retainer by index. */ |
| 303 const HeapGraphEdge* GetRetainer(int index) const; | 303 const HeapGraphEdge* GetRetainer(int index) const; |
| 304 | 304 |
| 305 /** | 305 /** |
| 306 * Returns a dominator node. This is the node that participates in every | 306 * Returns a dominator node. This is the node that participates in every |
| 307 * path from the snapshot root to the current node. | 307 * path from the snapshot root to the current node. |
| 308 */ | 308 */ |
| 309 const HeapGraphNode* GetDominatorNode() const; | 309 const HeapGraphNode* GetDominatorNode() const; |
| 310 |
| 311 /** |
| 312 * Finds and returns a value from the heap corresponding to this node, |
| 313 * if the value is still reachable. |
| 314 */ |
| 315 Handle<Value> GetHeapValue() const; |
| 310 }; | 316 }; |
| 311 | 317 |
| 312 | 318 |
| 313 /** | 319 /** |
| 314 * HeapSnapshots record the state of the JS heap at some moment. | 320 * HeapSnapshots record the state of the JS heap at some moment. |
| 315 */ | 321 */ |
| 316 class V8EXPORT HeapSnapshot { | 322 class V8EXPORT HeapSnapshot { |
| 317 public: | 323 public: |
| 318 enum Type { | 324 enum Type { |
| 319 kFull = 0 // Heap snapshot with all instances and references. | 325 kFull = 0 // Heap snapshot with all instances and references. |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 }; | 499 }; |
| 494 | 500 |
| 495 | 501 |
| 496 } // namespace v8 | 502 } // namespace v8 |
| 497 | 503 |
| 498 | 504 |
| 499 #undef V8EXPORT | 505 #undef V8EXPORT |
| 500 | 506 |
| 501 | 507 |
| 502 #endif // V8_V8_PROFILER_H_ | 508 #endif // V8_V8_PROFILER_H_ |
| OLD | NEW |