| 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 // An array of log events names. | 459 // An array of log events names. |
| 460 const char* const* log_events_; | 460 const char* const* log_events_; |
| 461 | 461 |
| 462 // Internal implementation classes with access to | 462 // Internal implementation classes with access to |
| 463 // private members. | 463 // private members. |
| 464 friend class EventLog; | 464 friend class EventLog; |
| 465 friend class Isolate; | 465 friend class Isolate; |
| 466 friend class LogMessageBuilder; | 466 friend class LogMessageBuilder; |
| 467 friend class TimeLog; | 467 friend class TimeLog; |
| 468 friend class Profiler; | 468 friend class Profiler; |
| 469 friend class StackTracer; | |
| 470 friend class VMState; | 469 friend class VMState; |
| 471 | 470 |
| 472 friend class LoggerTestHelper; | 471 friend class LoggerTestHelper; |
| 473 | 472 |
| 474 | 473 |
| 475 int logging_nesting_; | 474 int logging_nesting_; |
| 476 int cpu_profiler_nesting_; | 475 int cpu_profiler_nesting_; |
| 477 | 476 |
| 478 Log* log_; | 477 Log* log_; |
| 479 | 478 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 498 Address prev_to_; | 497 Address prev_to_; |
| 499 // Logger::FunctionCreateEvent(...) | 498 // Logger::FunctionCreateEvent(...) |
| 500 Address prev_code_; | 499 Address prev_code_; |
| 501 | 500 |
| 502 int64_t epoch_; | 501 int64_t epoch_; |
| 503 | 502 |
| 504 friend class CpuProfiler; | 503 friend class CpuProfiler; |
| 505 }; | 504 }; |
| 506 | 505 |
| 507 | 506 |
| 508 // Class that extracts stack trace, used for profiling. | |
| 509 class StackTracer : public AllStatic { | |
| 510 public: | |
| 511 static void Trace(Isolate* isolate, TickSample* sample); | |
| 512 }; | |
| 513 | |
| 514 } } // namespace v8::internal | 507 } } // namespace v8::internal |
| 515 | 508 |
| 516 | 509 |
| 517 #endif // V8_LOG_H_ | 510 #endif // V8_LOG_H_ |
| OLD | NEW |