OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_LOG_H_ | 5 #ifndef V8_LOG_H_ |
6 #define V8_LOG_H_ | 6 #define V8_LOG_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 // Emits a code line info start to record event | 253 // Emits a code line info start to record event |
254 void CodeStartLinePosInfoRecordEvent(PositionsRecorder* pos_recorder); | 254 void CodeStartLinePosInfoRecordEvent(PositionsRecorder* pos_recorder); |
255 // Emits a code line info finish record event. | 255 // Emits a code line info finish record event. |
256 // It's the callee's responsibility to dispose the parameter jit_handler_data. | 256 // It's the callee's responsibility to dispose the parameter jit_handler_data. |
257 void CodeEndLinePosInfoRecordEvent(AbstractCode* code, | 257 void CodeEndLinePosInfoRecordEvent(AbstractCode* code, |
258 void* jit_handler_data); | 258 void* jit_handler_data); |
259 | 259 |
260 void SharedFunctionInfoMoveEvent(Address from, Address to); | 260 void SharedFunctionInfoMoveEvent(Address from, Address to); |
261 | 261 |
262 void CodeNameEvent(Address addr, int pos, const char* code_name); | 262 void CodeNameEvent(Address addr, int pos, const char* code_name); |
263 void SnapshotPositionEvent(Address addr, int pos); | 263 void SnapshotPositionEvent(HeapObject* obj, int pos); |
264 | 264 |
265 // ==== Events logged by --log-gc. ==== | 265 // ==== Events logged by --log-gc. ==== |
266 // Heap sampling events: start, end, and individual types. | 266 // Heap sampling events: start, end, and individual types. |
267 void HeapSampleBeginEvent(const char* space, const char* kind); | 267 void HeapSampleBeginEvent(const char* space, const char* kind); |
268 void HeapSampleEndEvent(const char* space, const char* kind); | 268 void HeapSampleEndEvent(const char* space, const char* kind); |
269 void HeapSampleItemEvent(const char* type, int number, int bytes); | 269 void HeapSampleItemEvent(const char* type, int number, int bytes); |
270 void HeapSampleJSConstructorEvent(const char* constructor, | 270 void HeapSampleJSConstructorEvent(const char* constructor, |
271 int number, int bytes); | 271 int number, int bytes); |
272 void HeapSampleJSRetainersEvent(const char* constructor, | 272 void HeapSampleJSRetainersEvent(const char* constructor, |
273 const char* event); | 273 const char* event); |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 | 524 |
525 NameBuffer* name_buffer_; | 525 NameBuffer* name_buffer_; |
526 }; | 526 }; |
527 | 527 |
528 | 528 |
529 } // namespace internal | 529 } // namespace internal |
530 } // namespace v8 | 530 } // namespace v8 |
531 | 531 |
532 | 532 |
533 #endif // V8_LOG_H_ | 533 #endif // V8_LOG_H_ |
OLD | NEW |