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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 */ | 408 */ |
409 typedef RetainedObjectInfo* (*WrapperInfoCallback) | 409 typedef RetainedObjectInfo* (*WrapperInfoCallback) |
410 (uint16_t class_id, Handle<Value> wrapper); | 410 (uint16_t class_id, Handle<Value> wrapper); |
411 | 411 |
412 /** Returns the number of snapshots taken. */ | 412 /** Returns the number of snapshots taken. */ |
413 int GetSnapshotCount(); | 413 int GetSnapshotCount(); |
414 | 414 |
415 /** Returns a snapshot by index. */ | 415 /** Returns a snapshot by index. */ |
416 const HeapSnapshot* GetHeapSnapshot(int index); | 416 const HeapSnapshot* GetHeapSnapshot(int index); |
417 | 417 |
418 /** Returns a profile by uid. */ | |
419 V8_DEPRECATED(const HeapSnapshot* FindHeapSnapshot(unsigned uid)); | |
420 | |
421 /** | 418 /** |
422 * Returns SnapshotObjectId for a heap object referenced by |value| if | 419 * Returns SnapshotObjectId for a heap object referenced by |value| if |
423 * it has been seen by the heap profiler, kUnknownObjectId otherwise. | 420 * it has been seen by the heap profiler, kUnknownObjectId otherwise. |
424 */ | 421 */ |
425 SnapshotObjectId GetObjectId(Handle<Value> value); | 422 SnapshotObjectId GetObjectId(Handle<Value> value); |
426 | 423 |
427 /** | 424 /** |
428 * A constant for invalid SnapshotObjectId. GetSnapshotObjectId will return | 425 * A constant for invalid SnapshotObjectId. GetSnapshotObjectId will return |
429 * it in case heap profiler cannot find id for the object passed as | 426 * it in case heap profiler cannot find id for the object passed as |
430 * parameter. HeapSnapshot::GetNodeById will always return NULL for such id. | 427 * parameter. HeapSnapshot::GetNodeById will always return NULL for such id. |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 }; | 599 }; |
603 | 600 |
604 | 601 |
605 } // namespace v8 | 602 } // namespace v8 |
606 | 603 |
607 | 604 |
608 #undef V8EXPORT | 605 #undef V8EXPORT |
609 | 606 |
610 | 607 |
611 #endif // V8_V8_PROFILER_H_ | 608 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |