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 | |
353 /** | 350 /** |
354 * Deletes the snapshot and removes it from HeapProfiler's list. | 351 * Deletes the snapshot and removes it from HeapProfiler's list. |
355 * All pointers to nodes, edges and paths previously returned become | 352 * All pointers to nodes, edges and paths previously returned become |
356 * invalid. | 353 * invalid. |
357 */ | 354 */ |
358 void Delete(); | 355 void Delete(); |
359 | 356 |
360 /** | 357 /** |
361 * Prepare a serialized representation of the snapshot. The result | 358 * Prepare a serialized representation of the snapshot. The result |
362 * is written into the stream provided in chunks of specified size. | 359 * is written into the stream provided in chunks of specified size. |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 }; | 511 }; |
515 | 512 |
516 | 513 |
517 } // namespace v8 | 514 } // namespace v8 |
518 | 515 |
519 | 516 |
520 #undef V8EXPORT | 517 #undef V8EXPORT |
521 | 518 |
522 | 519 |
523 #endif // V8_V8_PROFILER_H_ | 520 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |