| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 static void PauseProfiler(int flags); | 258 static void PauseProfiler(int flags); |
| 259 static void ResumeProfiler(int flags); | 259 static void ResumeProfiler(int flags); |
| 260 static int GetActiveProfilerModules(); | 260 static int GetActiveProfilerModules(); |
| 261 | 261 |
| 262 // If logging is performed into a memory buffer, allows to | 262 // If logging is performed into a memory buffer, allows to |
| 263 // retrieve previously written messages. See v8.h. | 263 // retrieve previously written messages. See v8.h. |
| 264 static int GetLogLines(int from_pos, char* dest_buf, int max_size); | 264 static int GetLogLines(int from_pos, char* dest_buf, int max_size); |
| 265 | 265 |
| 266 // Logs all compiled functions found in the heap. | 266 // Logs all compiled functions found in the heap. |
| 267 static void LogCompiledFunctions(); | 267 static void LogCompiledFunctions(); |
| 268 // Used for logging stubs found in the snapshot. |
| 269 static void LogCodeObject(Object* code_object); |
| 268 | 270 |
| 269 private: | 271 private: |
| 270 | 272 |
| 271 // Profiler's sampling interval (in milliseconds). | 273 // Profiler's sampling interval (in milliseconds). |
| 272 static const int kSamplingIntervalMs = 1; | 274 static const int kSamplingIntervalMs = 1; |
| 273 | 275 |
| 274 // Size of window used for log records compression. | 276 // Size of window used for log records compression. |
| 275 static const int kCompressionWindowSize = 4; | 277 static const int kCompressionWindowSize = 4; |
| 276 | 278 |
| 277 // Emits the profiler's first message. | 279 // Emits the profiler's first message. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 // Class that extracts stack trace, used for profiling. | 344 // Class that extracts stack trace, used for profiling. |
| 343 class StackTracer : public AllStatic { | 345 class StackTracer : public AllStatic { |
| 344 public: | 346 public: |
| 345 static void Trace(TickSample* sample); | 347 static void Trace(TickSample* sample); |
| 346 }; | 348 }; |
| 347 | 349 |
| 348 | 350 |
| 349 } } // namespace v8::internal | 351 } } // namespace v8::internal |
| 350 | 352 |
| 351 #endif // V8_LOG_H_ | 353 #endif // V8_LOG_H_ |
| OLD | NEW |