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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 static HeapSnapshot* TakeSnapshot(const char* name, | 52 static HeapSnapshot* TakeSnapshot(const char* name, |
53 int type, | 53 int type, |
54 v8::ActivityControl* control); | 54 v8::ActivityControl* control); |
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 SnapshotObjectId 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 SnapshotObjectId GetSnapshotObjectId(Handle<Object> obj); |
66 static void DeleteAllSnapshots(); | 66 static void DeleteAllSnapshots(); |
67 | 67 |
68 void ObjectMoveEvent(Address from, Address to); | 68 void ObjectMoveEvent(Address from, Address to); |
69 | 69 |
70 void DefineWrapperClass( | 70 void DefineWrapperClass( |
71 uint16_t class_id, v8::HeapProfiler::WrapperInfoCallback callback); | 71 uint16_t class_id, v8::HeapProfiler::WrapperInfoCallback callback); |
(...skipping 10 matching lines...) Expand all Loading... |
82 HeapSnapshot* TakeSnapshotImpl(const char* name, | 82 HeapSnapshot* TakeSnapshotImpl(const char* name, |
83 int type, | 83 int type, |
84 v8::ActivityControl* control); | 84 v8::ActivityControl* control); |
85 HeapSnapshot* TakeSnapshotImpl(String* name, | 85 HeapSnapshot* TakeSnapshotImpl(String* name, |
86 int type, | 86 int type, |
87 v8::ActivityControl* control); | 87 v8::ActivityControl* control); |
88 void ResetSnapshots(); | 88 void ResetSnapshots(); |
89 | 89 |
90 void StartHeapObjectsTrackingImpl(); | 90 void StartHeapObjectsTrackingImpl(); |
91 void StopHeapObjectsTrackingImpl(); | 91 void StopHeapObjectsTrackingImpl(); |
92 void PushHeapObjectsStatsImpl(OutputStream* stream); | 92 SnapshotObjectId PushHeapObjectsStatsImpl(OutputStream* stream); |
93 | 93 |
94 HeapSnapshotsCollection* snapshots_; | 94 HeapSnapshotsCollection* snapshots_; |
95 unsigned next_snapshot_uid_; | 95 unsigned next_snapshot_uid_; |
96 List<v8::HeapProfiler::WrapperInfoCallback> wrapper_callbacks_; | 96 List<v8::HeapProfiler::WrapperInfoCallback> wrapper_callbacks_; |
97 }; | 97 }; |
98 | 98 |
99 } } // namespace v8::internal | 99 } } // namespace v8::internal |
100 | 100 |
101 #endif // V8_HEAP_PROFILER_H_ | 101 #endif // V8_HEAP_PROFILER_H_ |
OLD | NEW |