| OLD | NEW |
| 1 // Copyright 2009-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2009-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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 void StopHeapObjectsTracking(); | 57 void StopHeapObjectsTracking(); |
| 58 | 58 |
| 59 SnapshotObjectId PushHeapObjectsStats(OutputStream* stream); | 59 SnapshotObjectId PushHeapObjectsStats(OutputStream* stream); |
| 60 int GetSnapshotsCount(); | 60 int GetSnapshotsCount(); |
| 61 HeapSnapshot* GetSnapshot(int index); | 61 HeapSnapshot* GetSnapshot(int index); |
| 62 SnapshotObjectId GetSnapshotObjectId(Handle<Object> obj); | 62 SnapshotObjectId GetSnapshotObjectId(Handle<Object> obj); |
| 63 void DeleteAllSnapshots(); | 63 void DeleteAllSnapshots(); |
| 64 | 64 |
| 65 void ObjectMoveEvent(Address from, Address to, int size); | 65 void ObjectMoveEvent(Address from, Address to, int size); |
| 66 | 66 |
| 67 void NewObjectEvent(Address addr, int size); | 67 void AllocationEvent(Address addr, int size); |
| 68 | 68 |
| 69 void UpdateObjectSizeEvent(Address addr, int size); | 69 void UpdateObjectSizeEvent(Address addr, int size); |
| 70 | 70 |
| 71 void DefineWrapperClass( | 71 void DefineWrapperClass( |
| 72 uint16_t class_id, v8::HeapProfiler::WrapperInfoCallback callback); | 72 uint16_t class_id, v8::HeapProfiler::WrapperInfoCallback callback); |
| 73 | 73 |
| 74 v8::RetainedObjectInfo* ExecuteWrapperClassCallback(uint16_t class_id, | 74 v8::RetainedObjectInfo* ExecuteWrapperClassCallback(uint16_t class_id, |
| 75 Object** wrapper); | 75 Object** wrapper); |
| 76 void SetRetainedObjectInfo(UniqueId id, RetainedObjectInfo* info); | 76 void SetRetainedObjectInfo(UniqueId id, RetainedObjectInfo* info); |
| 77 | 77 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 91 HeapSnapshotsCollection* snapshots_; | 91 HeapSnapshotsCollection* snapshots_; |
| 92 unsigned next_snapshot_uid_; | 92 unsigned next_snapshot_uid_; |
| 93 List<v8::HeapProfiler::WrapperInfoCallback> wrapper_callbacks_; | 93 List<v8::HeapProfiler::WrapperInfoCallback> wrapper_callbacks_; |
| 94 bool is_tracking_allocations_; | 94 bool is_tracking_allocations_; |
| 95 bool is_tracking_object_moves_; | 95 bool is_tracking_object_moves_; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } } // namespace v8::internal | 98 } } // namespace v8::internal |
| 99 | 99 |
| 100 #endif // V8_HEAP_PROFILER_H_ | 100 #endif // V8_HEAP_PROFILER_H_ |
| OLD | NEW |