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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 v8::ActivityControl* control, | 49 v8::ActivityControl* control, |
50 v8::HeapProfiler::ObjectNameResolver* resolver); | 50 v8::HeapProfiler::ObjectNameResolver* resolver); |
51 HeapSnapshot* TakeSnapshot( | 51 HeapSnapshot* TakeSnapshot( |
52 String* name, | 52 String* name, |
53 v8::ActivityControl* control, | 53 v8::ActivityControl* control, |
54 v8::HeapProfiler::ObjectNameResolver* resolver); | 54 v8::HeapProfiler::ObjectNameResolver* resolver); |
55 | 55 |
56 void StartHeapObjectsTracking(); | 56 void StartHeapObjectsTracking(); |
57 void StopHeapObjectsTracking(); | 57 void StopHeapObjectsTracking(); |
58 | 58 |
59 static void RecordObjectAllocationFromMasm(Isolate* isolate, | |
60 Address obj, | |
61 int size); | |
62 | |
63 SnapshotObjectId PushHeapObjectsStats(OutputStream* stream); | 59 SnapshotObjectId PushHeapObjectsStats(OutputStream* stream); |
64 int GetSnapshotsCount(); | 60 int GetSnapshotsCount(); |
65 HeapSnapshot* GetSnapshot(int index); | 61 HeapSnapshot* GetSnapshot(int index); |
66 SnapshotObjectId GetSnapshotObjectId(Handle<Object> obj); | 62 SnapshotObjectId GetSnapshotObjectId(Handle<Object> obj); |
67 void DeleteAllSnapshots(); | 63 void DeleteAllSnapshots(); |
68 | 64 |
69 void ObjectMoveEvent(Address from, Address to, int size); | 65 void ObjectMoveEvent(Address from, Address to, int size); |
70 | 66 |
71 void NewObjectEvent(Address addr, int size); | 67 void NewObjectEvent(Address addr, int size); |
72 | 68 |
(...skipping 28 matching lines...) Expand all Loading... |
101 | 97 |
102 HeapSnapshotsCollection* snapshots_; | 98 HeapSnapshotsCollection* snapshots_; |
103 unsigned next_snapshot_uid_; | 99 unsigned next_snapshot_uid_; |
104 List<v8::HeapProfiler::WrapperInfoCallback> wrapper_callbacks_; | 100 List<v8::HeapProfiler::WrapperInfoCallback> wrapper_callbacks_; |
105 bool is_tracking_allocations_; | 101 bool is_tracking_allocations_; |
106 }; | 102 }; |
107 | 103 |
108 } } // namespace v8::internal | 104 } } // namespace v8::internal |
109 | 105 |
110 #endif // V8_HEAP_PROFILER_H_ | 106 #endif // V8_HEAP_PROFILER_H_ |
OLD | NEW |