| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 int logging_nesting_; | 369 int logging_nesting_; |
| 370 int cpu_profiler_nesting_; | 370 int cpu_profiler_nesting_; |
| 371 int heap_profiler_nesting_; | 371 int heap_profiler_nesting_; |
| 372 | 372 |
| 373 Log* log_; | 373 Log* log_; |
| 374 | 374 |
| 375 // Guards against multiple calls to TearDown() that can happen in some tests. | 375 // Guards against multiple calls to TearDown() that can happen in some tests. |
| 376 // 'true' between Setup() and TearDown(). | 376 // 'true' between Setup() and TearDown(). |
| 377 bool is_initialized_; | 377 bool is_initialized_; |
| 378 | 378 |
| 379 // Support for 'incremental addresses' in compressed logs: |
| 380 // LogMessageBuilder::AppendAddress(Address addr) |
| 381 Address last_address_; |
| 382 // Logger::TickEvent(...) |
| 383 Address prev_sp_; |
| 384 Address prev_function_; |
| 385 // Logger::MoveEventInternal(...) |
| 386 Address prev_to_; |
| 387 // Logger::FunctionCreateEvent(...) |
| 388 Address prev_code_; |
| 389 |
| 379 friend class CpuProfiler; | 390 friend class CpuProfiler; |
| 380 #else | 391 #else |
| 381 bool is_logging() { return false; } | 392 bool is_logging() { return false; } |
| 382 #endif | 393 #endif |
| 383 }; | 394 }; |
| 384 | 395 |
| 385 | 396 |
| 386 // Class that extracts stack trace, used for profiling. | 397 // Class that extracts stack trace, used for profiling. |
| 387 class StackTracer : public AllStatic { | 398 class StackTracer : public AllStatic { |
| 388 public: | 399 public: |
| 389 static void Trace(TickSample* sample); | 400 static void Trace(TickSample* sample); |
| 390 }; | 401 }; |
| 391 | 402 |
| 392 } } // namespace v8::internal | 403 } } // namespace v8::internal |
| 393 | 404 |
| 394 | 405 |
| 395 #endif // V8_LOG_H_ | 406 #endif // V8_LOG_H_ |
| OLD | NEW |