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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 | 351 |
352 /** Returns heap snapshot UID (assigned by the profiler.) */ | 352 /** Returns heap snapshot UID (assigned by the profiler.) */ |
353 unsigned GetUid() const; | 353 unsigned GetUid() const; |
354 | 354 |
355 /** Returns heap snapshot title. */ | 355 /** Returns heap snapshot title. */ |
356 Handle<String> GetTitle() const; | 356 Handle<String> GetTitle() const; |
357 | 357 |
358 /** Returns the root node of the heap graph. */ | 358 /** Returns the root node of the heap graph. */ |
359 const HeapGraphNode* GetRoot() const; | 359 const HeapGraphNode* GetRoot() const; |
360 | 360 |
| 361 /** Returns a node by its id. */ |
| 362 const HeapGraphNode* GetNodeById(uint64_t id) const; |
| 363 |
361 /** | 364 /** |
362 * Returns a diff between this snapshot and another one. Only snapshots | 365 * Returns a diff between this snapshot and another one. Only snapshots |
363 * of the same type can be compared. | 366 * of the same type can be compared. |
364 */ | 367 */ |
365 const HeapSnapshotsDiff* CompareWith(const HeapSnapshot* snapshot) const; | 368 const HeapSnapshotsDiff* CompareWith(const HeapSnapshot* snapshot) const; |
366 | 369 |
367 /** | 370 /** |
368 * Prepare a serialized representation of the snapshot. The result | 371 * Prepare a serialized representation of the snapshot. The result |
369 * is written into the stream provided in chunks of specified size. | 372 * is written into the stream provided in chunks of specified size. |
370 * The total length of the serialized snapshot is unknown in | 373 * The total length of the serialized snapshot is unknown in |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 }; | 417 }; |
415 | 418 |
416 | 419 |
417 } // namespace v8 | 420 } // namespace v8 |
418 | 421 |
419 | 422 |
420 #undef V8EXPORT | 423 #undef V8EXPORT |
421 | 424 |
422 | 425 |
423 #endif // V8_V8_PROFILER_H_ | 426 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |