| 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script*)); | 290 INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script*)); |
| 291 | 291 |
| 292 // Profiler's sampling interval (in milliseconds). | 292 // Profiler's sampling interval (in milliseconds). |
| 293 static const int kSamplingIntervalMs = 1; | 293 static const int kSamplingIntervalMs = 1; |
| 294 | 294 |
| 295 // Callback from Log, stops profiling in case of insufficient resources. | 295 // Callback from Log, stops profiling in case of insufficient resources. |
| 296 void LogFailure(); | 296 void LogFailure(); |
| 297 | 297 |
| 298 private: | 298 private: |
| 299 Logger(); | 299 Logger(); |
| 300 ~Logger(); |
| 300 | 301 |
| 301 // Size of window used for log records compression. | 302 // Size of window used for log records compression. |
| 302 static const int kCompressionWindowSize = 4; | 303 static const int kCompressionWindowSize = 4; |
| 303 | 304 |
| 304 // Emits the profiler's first message. | 305 // Emits the profiler's first message. |
| 305 void ProfilerBeginEvent(); | 306 void ProfilerBeginEvent(); |
| 306 | 307 |
| 307 // Emits callback event messages. | 308 // Emits callback event messages. |
| 308 void CallbackEventInternal(const char* prefix, | 309 void CallbackEventInternal(const char* prefix, |
| 309 const char* name, | 310 const char* name, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 // Class that extracts stack trace, used for profiling. | 410 // Class that extracts stack trace, used for profiling. |
| 410 class StackTracer : public AllStatic { | 411 class StackTracer : public AllStatic { |
| 411 public: | 412 public: |
| 412 static void Trace(TickSample* sample); | 413 static void Trace(TickSample* sample); |
| 413 }; | 414 }; |
| 414 | 415 |
| 415 } } // namespace v8::internal | 416 } } // namespace v8::internal |
| 416 | 417 |
| 417 | 418 |
| 418 #endif // V8_LOG_H_ | 419 #endif // V8_LOG_H_ |
| OLD | NEW |