| 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 | 340 |
| 341 /** Returns a node by its id. */ | 341 /** Returns a node by its id. */ |
| 342 const HeapGraphNode* GetNodeById(SnapshotObjectId id) const; | 342 const HeapGraphNode* GetNodeById(SnapshotObjectId id) const; |
| 343 | 343 |
| 344 /** Returns total nodes count in the snapshot. */ | 344 /** Returns total nodes count in the snapshot. */ |
| 345 int GetNodesCount() const; | 345 int GetNodesCount() const; |
| 346 | 346 |
| 347 /** Returns a node by index. */ | 347 /** Returns a node by index. */ |
| 348 const HeapGraphNode* GetNode(int index) const; | 348 const HeapGraphNode* GetNode(int index) const; |
| 349 | 349 |
| 350 /** Returns a max seen JS object Id. */ |
| 351 SnapshotObjectId GetMaxSnapshotJSObjectId() const; |
| 352 |
| 350 /** | 353 /** |
| 351 * Deletes the snapshot and removes it from HeapProfiler's list. | 354 * Deletes the snapshot and removes it from HeapProfiler's list. |
| 352 * All pointers to nodes, edges and paths previously returned become | 355 * All pointers to nodes, edges and paths previously returned become |
| 353 * invalid. | 356 * invalid. |
| 354 */ | 357 */ |
| 355 void Delete(); | 358 void Delete(); |
| 356 | 359 |
| 357 /** | 360 /** |
| 358 * Prepare a serialized representation of the snapshot. The result | 361 * Prepare a serialized representation of the snapshot. The result |
| 359 * is written into the stream provided in chunks of specified size. | 362 * is written into the stream provided in chunks of specified size. |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 }; | 514 }; |
| 512 | 515 |
| 513 | 516 |
| 514 } // namespace v8 | 517 } // namespace v8 |
| 515 | 518 |
| 516 | 519 |
| 517 #undef V8EXPORT | 520 #undef V8EXPORT |
| 518 | 521 |
| 519 | 522 |
| 520 #endif // V8_V8_PROFILER_H_ | 523 #endif // V8_V8_PROFILER_H_ |
| OLD | NEW |