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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 | 339 |
340 /** Returns heap snapshot title. */ | 340 /** Returns heap snapshot title. */ |
341 Handle<String> GetTitle() const; | 341 Handle<String> GetTitle() const; |
342 | 342 |
343 /** Returns the root node of the heap graph. */ | 343 /** Returns the root node of the heap graph. */ |
344 const HeapGraphNode* GetRoot() const; | 344 const HeapGraphNode* GetRoot() const; |
345 | 345 |
346 /** Returns a node by its id. */ | 346 /** Returns a node by its id. */ |
347 const HeapGraphNode* GetNodeById(uint64_t id) const; | 347 const HeapGraphNode* GetNodeById(uint64_t id) const; |
348 | 348 |
| 349 /** Returns total nodes count in the snapshot. */ |
| 350 int GetNodesCount() const; |
| 351 |
| 352 /** Returns a node by index. */ |
| 353 const HeapGraphNode* GetNode(int index) const; |
| 354 |
349 /** | 355 /** |
350 * Deletes the snapshot and removes it from HeapProfiler's list. | 356 * Deletes the snapshot and removes it from HeapProfiler's list. |
351 * All pointers to nodes, edges and paths previously returned become | 357 * All pointers to nodes, edges and paths previously returned become |
352 * invalid. | 358 * invalid. |
353 */ | 359 */ |
354 void Delete(); | 360 void Delete(); |
355 | 361 |
356 /** | 362 /** |
357 * Prepare a serialized representation of the snapshot. The result | 363 * Prepare a serialized representation of the snapshot. The result |
358 * is written into the stream provided in chunks of specified size. | 364 * is written into the stream provided in chunks of specified size. |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 }; | 502 }; |
497 | 503 |
498 | 504 |
499 } // namespace v8 | 505 } // namespace v8 |
500 | 506 |
501 | 507 |
502 #undef V8EXPORT | 508 #undef V8EXPORT |
503 | 509 |
504 | 510 |
505 #endif // V8_V8_PROFILER_H_ | 511 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |