| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 static HeapSnapshot* TakeSnapshot(String* name, | 55 static HeapSnapshot* TakeSnapshot(String* name, |
| 56 int type, | 56 int type, |
| 57 v8::ActivityControl* control); | 57 v8::ActivityControl* control); |
| 58 | 58 |
| 59 static void StartHeapObjectsTracking(); | 59 static void StartHeapObjectsTracking(); |
| 60 static void StopHeapObjectsTracking(); | 60 static void StopHeapObjectsTracking(); |
| 61 static void PushHeapObjectsStats(OutputStream* stream); | 61 static void PushHeapObjectsStats(OutputStream* stream); |
| 62 static int GetSnapshotsCount(); | 62 static int GetSnapshotsCount(); |
| 63 static HeapSnapshot* GetSnapshot(int index); | 63 static HeapSnapshot* GetSnapshot(int index); |
| 64 static HeapSnapshot* FindSnapshot(unsigned uid); | 64 static HeapSnapshot* FindSnapshot(unsigned uid); |
| 65 static SnapshotObjectId GetSnapshotObjectId(Handle<Object> obj); |
| 65 static void DeleteAllSnapshots(); | 66 static void DeleteAllSnapshots(); |
| 66 | 67 |
| 67 void ObjectMoveEvent(Address from, Address to); | 68 void ObjectMoveEvent(Address from, Address to); |
| 68 | 69 |
| 69 void DefineWrapperClass( | 70 void DefineWrapperClass( |
| 70 uint16_t class_id, v8::HeapProfiler::WrapperInfoCallback callback); | 71 uint16_t class_id, v8::HeapProfiler::WrapperInfoCallback callback); |
| 71 | 72 |
| 72 v8::RetainedObjectInfo* ExecuteWrapperClassCallback(uint16_t class_id, | 73 v8::RetainedObjectInfo* ExecuteWrapperClassCallback(uint16_t class_id, |
| 73 Object** wrapper); | 74 Object** wrapper); |
| 74 INLINE(bool is_profiling()) { | 75 INLINE(bool is_profiling()) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 91 void PushHeapObjectsStatsImpl(OutputStream* stream); | 92 void PushHeapObjectsStatsImpl(OutputStream* stream); |
| 92 | 93 |
| 93 HeapSnapshotsCollection* snapshots_; | 94 HeapSnapshotsCollection* snapshots_; |
| 94 unsigned next_snapshot_uid_; | 95 unsigned next_snapshot_uid_; |
| 95 List<v8::HeapProfiler::WrapperInfoCallback> wrapper_callbacks_; | 96 List<v8::HeapProfiler::WrapperInfoCallback> wrapper_callbacks_; |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 } } // namespace v8::internal | 99 } } // namespace v8::internal |
| 99 | 100 |
| 100 #endif // V8_HEAP_PROFILER_H_ | 101 #endif // V8_HEAP_PROFILER_H_ |
| OLD | NEW |