Chromium Code Reviews| Index: include/v8.h |
| diff --git a/include/v8.h b/include/v8.h |
| index 6d1826126bd357ebc7555da00421cbc012babfc6..61ce6edbab414c4b91077cf257c0db9973c2ae09 100644 |
| --- a/include/v8.h |
| +++ b/include/v8.h |
| @@ -1126,9 +1126,9 @@ class V8EXPORT Object : public Value { |
| /** |
| * Returns the identity hash for this object. The current implemenation uses |
| - * a hidden property on the object to store the identity hash. |
| + * a hidden property on the object to store the identity hash. |
| * |
| - * The return value will never be 0. Also, it is not guaranteed to be |
| + * The return value will never be 0. Also, it is not guaranteed to be |
| * unique. |
| */ |
| int GetIdentityHash(); |
| @@ -2080,6 +2080,24 @@ class V8EXPORT V8 { |
| static void ResumeProfiler(); |
| /** |
| + * If logging is performed into a memory buffer (via --logfile=*), allows to |
| + * retrieve previously written messages. This can be used for retrieving |
| + * profiler log data in application. This function is thread-safe. |
|
Søren Thygesen Gjesse
2009/05/05 13:52:35
Missing the after in.
Mikhail Naganov
2009/05/05 15:56:46
Done.
|
| + * |
| + * Caller provides a destination buffer that must exist during GetLogLines |
| + * call. Only whole log lines are copied into the buffer. |
| + * |
| + * \param from_pos specified a point in a buffer to read from, 0 is the |
| + * beginning of a buffer. It is assumed that caller updates its current |
| + * position using returned size value from the previous call. |
| + * \param dest_buf destination buffer for log data. |
| + * \param max_size size of the destination buffer. |
| + * \returns actual size of log data copied into buffer. |
| + */ |
| + static int GetLogLines(int from_pos, char* dest_buf, int max_size); |
| + |
| + |
| + /** |
| * Releases any resources used by v8 and stops any utility threads |
| * that may be running. Note that disposing v8 is permanent, it |
| * cannot be reinitialized. |