| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 // Logs all compiled JSFunction objects found in the heap. | 261 // Logs all compiled JSFunction objects found in the heap. |
| 262 static void LogFunctionObjects(); | 262 static void LogFunctionObjects(); |
| 263 // Logs all accessor callbacks found in the heap. | 263 // Logs all accessor callbacks found in the heap. |
| 264 static void LogAccessorCallbacks(); | 264 static void LogAccessorCallbacks(); |
| 265 // Used for logging stubs found in the snapshot. | 265 // Used for logging stubs found in the snapshot. |
| 266 static void LogCodeObjects(); | 266 static void LogCodeObjects(); |
| 267 | 267 |
| 268 // Converts tag to a corresponding NATIVE_... if the script is native. | 268 // Converts tag to a corresponding NATIVE_... if the script is native. |
| 269 INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script*)); | 269 INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script*)); |
| 270 | 270 |
| 271 private: | |
| 272 | |
| 273 // Profiler's sampling interval (in milliseconds). | 271 // Profiler's sampling interval (in milliseconds). |
| 274 static const int kSamplingIntervalMs = 1; | 272 static const int kSamplingIntervalMs = 1; |
| 275 | 273 |
| 274 private: |
| 275 |
| 276 // Size of window used for log records compression. | 276 // Size of window used for log records compression. |
| 277 static const int kCompressionWindowSize = 4; | 277 static const int kCompressionWindowSize = 4; |
| 278 | 278 |
| 279 // Emits the profiler's first message. | 279 // Emits the profiler's first message. |
| 280 static void ProfilerBeginEvent(); | 280 static void ProfilerBeginEvent(); |
| 281 | 281 |
| 282 // Emits callback event messages. | 282 // Emits callback event messages. |
| 283 static void CallbackEventInternal(const char* prefix, | 283 static void CallbackEventInternal(const char* prefix, |
| 284 const char* name, | 284 const char* name, |
| 285 Address entry_point); | 285 Address entry_point); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 // Class that extracts stack trace, used for profiling. | 363 // Class that extracts stack trace, used for profiling. |
| 364 class StackTracer : public AllStatic { | 364 class StackTracer : public AllStatic { |
| 365 public: | 365 public: |
| 366 static void Trace(TickSample* sample); | 366 static void Trace(TickSample* sample); |
| 367 }; | 367 }; |
| 368 | 368 |
| 369 } } // namespace v8::internal | 369 } } // namespace v8::internal |
| 370 | 370 |
| 371 | 371 |
| 372 #endif // V8_LOG_H_ | 372 #endif // V8_LOG_H_ |
| OLD | NEW |