| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 return logging_nesting_ > 0; | 277 return logging_nesting_ > 0; |
| 278 } | 278 } |
| 279 | 279 |
| 280 // Pause/Resume collection of profiling data. | 280 // Pause/Resume collection of profiling data. |
| 281 // When data collection is paused, CPU Tick events are discarded until | 281 // When data collection is paused, CPU Tick events are discarded until |
| 282 // data collection is Resumed. | 282 // data collection is Resumed. |
| 283 void PauseProfiler(); | 283 void PauseProfiler(); |
| 284 void ResumeProfiler(); | 284 void ResumeProfiler(); |
| 285 bool IsProfilerPaused(); | 285 bool IsProfilerPaused(); |
| 286 | 286 |
| 287 // If logging is performed into a memory buffer, allows to | |
| 288 // retrieve previously written messages. See v8.h. | |
| 289 int GetLogLines(int from_pos, char* dest_buf, int max_size); | |
| 290 | |
| 291 // Logs all compiled functions found in the heap. | 287 // Logs all compiled functions found in the heap. |
| 292 void LogCompiledFunctions(); | 288 void LogCompiledFunctions(); |
| 293 // Logs all accessor callbacks found in the heap. | 289 // Logs all accessor callbacks found in the heap. |
| 294 void LogAccessorCallbacks(); | 290 void LogAccessorCallbacks(); |
| 295 // Used for logging stubs found in the snapshot. | 291 // Used for logging stubs found in the snapshot. |
| 296 void LogCodeObjects(); | 292 void LogCodeObjects(); |
| 297 | 293 |
| 298 // Converts tag to a corresponding NATIVE_... if the script is native. | 294 // Converts tag to a corresponding NATIVE_... if the script is native. |
| 299 INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script*)); | 295 INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script*)); |
| 300 | 296 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 // Class that extracts stack trace, used for profiling. | 462 // Class that extracts stack trace, used for profiling. |
| 467 class StackTracer : public AllStatic { | 463 class StackTracer : public AllStatic { |
| 468 public: | 464 public: |
| 469 static void Trace(Isolate* isolate, TickSample* sample); | 465 static void Trace(Isolate* isolate, TickSample* sample); |
| 470 }; | 466 }; |
| 471 | 467 |
| 472 } } // namespace v8::internal | 468 } } // namespace v8::internal |
| 473 | 469 |
| 474 | 470 |
| 475 #endif // V8_LOG_H_ | 471 #endif // V8_LOG_H_ |
| OLD | NEW |