Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: include/v8.h

Issue 7310025: Remove support for logging into a memory buffer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/runtime.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2966 matching lines...) Expand 10 before | Expand all | Expand 10 after
2977 * See also PauseProfiler(). 2977 * See also PauseProfiler().
2978 */ 2978 */
2979 static void ResumeProfiler(); 2979 static void ResumeProfiler();
2980 2980
2981 /** 2981 /**
2982 * Return whether profiler is currently paused. 2982 * Return whether profiler is currently paused.
2983 */ 2983 */
2984 static bool IsProfilerPaused(); 2984 static bool IsProfilerPaused();
2985 2985
2986 /** 2986 /**
2987 * If logging is performed into a memory buffer (via --logfile=*), allows to
2988 * retrieve previously written messages. This can be used for retrieving
2989 * profiler log data in the application. This function is thread-safe.
2990 *
2991 * Caller provides a destination buffer that must exist during GetLogLines
2992 * call. Only whole log lines are copied into the buffer.
2993 *
2994 * \param from_pos specified a point in a buffer to read from, 0 is the
2995 * beginning of a buffer. It is assumed that caller updates its current
2996 * position using returned size value from the previous call.
2997 * \param dest_buf destination buffer for log data.
2998 * \param max_size size of the destination buffer.
2999 * \returns actual size of log data copied into buffer.
3000 */
3001 static int GetLogLines(int from_pos, char* dest_buf, int max_size);
3002
3003 /**
3004 * The minimum allowed size for a log lines buffer. If the size of
3005 * the buffer given will not be enough to hold a line of the maximum
3006 * length, an attempt to find a log line end in GetLogLines will
3007 * fail, and an empty result will be returned.
3008 */
3009 static const int kMinimumSizeForLogLinesBuffer = 2048;
3010
3011 /**
3012 * Retrieve the V8 thread id of the calling thread. 2987 * Retrieve the V8 thread id of the calling thread.
3013 * 2988 *
3014 * The thread id for a thread should only be retrieved after the V8 2989 * The thread id for a thread should only be retrieved after the V8
3015 * lock has been acquired with a Locker object with that thread. 2990 * lock has been acquired with a Locker object with that thread.
3016 */ 2991 */
3017 static int GetCurrentThreadId(); 2992 static int GetCurrentThreadId();
3018 2993
3019 /** 2994 /**
3020 * Forcefully terminate execution of a JavaScript thread. This can 2995 * Forcefully terminate execution of a JavaScript thread. This can
3021 * be used to terminate long-running scripts. 2996 * be used to terminate long-running scripts.
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
4103 4078
4104 4079
4105 } // namespace v8 4080 } // namespace v8
4106 4081
4107 4082
4108 #undef V8EXPORT 4083 #undef V8EXPORT
4109 #undef TYPE_CHECK 4084 #undef TYPE_CHECK
4110 4085
4111 4086
4112 #endif // V8_H_ 4087 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698