OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 404 matching lines...) Loading... |
415 | 415 |
416 // Helper method. It resets name_buffer_ and add tag name into it. | 416 // Helper method. It resets name_buffer_ and add tag name into it. |
417 void InitNameBuffer(LogEventsAndTags tag); | 417 void InitNameBuffer(LogEventsAndTags tag); |
418 | 418 |
419 // Helper method. It push recorded buffer into different handlers. | 419 // Helper method. It push recorded buffer into different handlers. |
420 void LogRecordedBuffer(Code*, SharedFunctionInfo*); | 420 void LogRecordedBuffer(Code*, SharedFunctionInfo*); |
421 | 421 |
422 // Helper method. It dumps name into name_buffer_. | 422 // Helper method. It dumps name into name_buffer_. |
423 void AppendName(Name* name); | 423 void AppendName(Name* name); |
424 | 424 |
| 425 // Appends standard code header. |
| 426 void AppendCodeCreateHeader(LogMessageBuilder*, LogEventsAndTags, Code*); |
| 427 |
| 428 // Appends symbol for the name. |
| 429 void AppendSymbolName(LogMessageBuilder*, Symbol*); |
| 430 |
425 // Emits general information about generated code. | 431 // Emits general information about generated code. |
426 void LogCodeInfo(); | 432 void LogCodeInfo(); |
427 | 433 |
428 void RegisterSnapshotCodeName(Code* code, const char* name, int name_size); | 434 void RegisterSnapshotCodeName(Code* code, const char* name, int name_size); |
429 | 435 |
430 // Low-level logging support. | 436 // Low-level logging support. |
431 | 437 |
432 void LowLevelCodeCreateEvent(Code* code, const char* name, int name_size); | 438 void LowLevelCodeCreateEvent(Code* code, const char* name, int name_size); |
433 | 439 |
434 void LowLevelCodeMoveEvent(Address from, Address to); | 440 void LowLevelCodeMoveEvent(Address from, Address to); |
(...skipping 78 matching lines...) Loading... |
513 int64_t epoch_; | 519 int64_t epoch_; |
514 | 520 |
515 friend class CpuProfiler; | 521 friend class CpuProfiler; |
516 }; | 522 }; |
517 | 523 |
518 | 524 |
519 } } // namespace v8::internal | 525 } } // namespace v8::internal |
520 | 526 |
521 | 527 |
522 #endif // V8_LOG_H_ | 528 #endif // V8_LOG_H_ |
OLD | NEW |