OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-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 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2078 */ | 2078 */ |
2079 static void PauseProfiler(); | 2079 static void PauseProfiler(); |
2080 | 2080 |
2081 /** | 2081 /** |
2082 * Resumes recording of tick samples in the profiler. | 2082 * Resumes recording of tick samples in the profiler. |
2083 * See also PauseProfiler(). | 2083 * See also PauseProfiler(). |
2084 */ | 2084 */ |
2085 static void ResumeProfiler(); | 2085 static void ResumeProfiler(); |
2086 | 2086 |
2087 /** | 2087 /** |
| 2088 * Return whether profiler is currently paused. |
| 2089 */ |
| 2090 static bool IsProfilerPaused(); |
| 2091 |
| 2092 /** |
2088 * If logging is performed into a memory buffer (via --logfile=*), allows to | 2093 * If logging is performed into a memory buffer (via --logfile=*), allows to |
2089 * retrieve previously written messages. This can be used for retrieving | 2094 * retrieve previously written messages. This can be used for retrieving |
2090 * profiler log data in the application. This function is thread-safe. | 2095 * profiler log data in the application. This function is thread-safe. |
2091 * | 2096 * |
2092 * Caller provides a destination buffer that must exist during GetLogLines | 2097 * Caller provides a destination buffer that must exist during GetLogLines |
2093 * call. Only whole log lines are copied into the buffer. | 2098 * call. Only whole log lines are copied into the buffer. |
2094 * | 2099 * |
2095 * \param from_pos specified a point in a buffer to read from, 0 is the | 2100 * \param from_pos specified a point in a buffer to read from, 0 is the |
2096 * beginning of a buffer. It is assumed that caller updates its current | 2101 * beginning of a buffer. It is assumed that caller updates its current |
2097 * position using returned size value from the previous call. | 2102 * position using returned size value from the previous call. |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2604 | 2609 |
2605 } // namespace v8 | 2610 } // namespace v8 |
2606 | 2611 |
2607 | 2612 |
2608 #undef V8EXPORT | 2613 #undef V8EXPORT |
2609 #undef V8EXPORT_INLINE | 2614 #undef V8EXPORT_INLINE |
2610 #undef TYPE_CHECK | 2615 #undef TYPE_CHECK |
2611 | 2616 |
2612 | 2617 |
2613 #endif // V8_H_ | 2618 #endif // V8_H_ |
OLD | NEW |