| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 154 |
| 155 // Acquires resources for logging if the right flags are set. | 155 // Acquires resources for logging if the right flags are set. |
| 156 static bool Setup(); | 156 static bool Setup(); |
| 157 | 157 |
| 158 // Frees resources acquired in Setup. | 158 // Frees resources acquired in Setup. |
| 159 static void TearDown(); | 159 static void TearDown(); |
| 160 | 160 |
| 161 // Enable the computation of a sliding window of states. | 161 // Enable the computation of a sliding window of states. |
| 162 static void EnableSlidingStateWindow(); | 162 static void EnableSlidingStateWindow(); |
| 163 | 163 |
| 164 // Write a raw string to the log to be used as a preamble. | |
| 165 // No check is made that the 'preamble' is actually at the beginning | |
| 166 // of the log. The preample is used to write code events saved in the | |
| 167 // snapshot. | |
| 168 static void Preamble(const char* content); | |
| 169 | |
| 170 // Emits an event with a string value -> (name, value). | 164 // Emits an event with a string value -> (name, value). |
| 171 static void StringEvent(const char* name, const char* value); | 165 static void StringEvent(const char* name, const char* value); |
| 172 | 166 |
| 173 // Emits an event with an int value -> (name, value). | 167 // Emits an event with an int value -> (name, value). |
| 174 static void IntEvent(const char* name, int value); | 168 static void IntEvent(const char* name, int value); |
| 175 | 169 |
| 176 // Emits an event with an handle value -> (name, location). | 170 // Emits an event with an handle value -> (name, location). |
| 177 static void HandleEvent(const char* name, Object** location); | 171 static void HandleEvent(const char* name, Object** location); |
| 178 | 172 |
| 179 // Emits memory management events for C allocated structures. | 173 // Emits memory management events for C allocated structures. |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 // Class that extracts stack trace, used for profiling. | 384 // Class that extracts stack trace, used for profiling. |
| 391 class StackTracer : public AllStatic { | 385 class StackTracer : public AllStatic { |
| 392 public: | 386 public: |
| 393 static void Trace(TickSample* sample); | 387 static void Trace(TickSample* sample); |
| 394 }; | 388 }; |
| 395 | 389 |
| 396 | 390 |
| 397 } } // namespace v8::internal | 391 } } // namespace v8::internal |
| 398 | 392 |
| 399 #endif // V8_LOG_H_ | 393 #endif // V8_LOG_H_ |
| OLD | NEW |