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

Side by Side Diff: include/v8.h

Issue 186163002: Add support for allowing an embedder to get the V8 profile timer event logs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Renamings Created 6 years, 9 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/api.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 3787 matching lines...) Expand 10 before | Expand all | Expand 10 after
3798 3798
3799 3799
3800 // --- Exceptions --- 3800 // --- Exceptions ---
3801 3801
3802 3802
3803 typedef void (*FatalErrorCallback)(const char* location, const char* message); 3803 typedef void (*FatalErrorCallback)(const char* location, const char* message);
3804 3804
3805 3805
3806 typedef void (*MessageCallback)(Handle<Message> message, Handle<Value> error); 3806 typedef void (*MessageCallback)(Handle<Message> message, Handle<Value> error);
3807 3807
3808 // --- Tracing ---
3809
3810 typedef void (*LogEventCallback)(const char* name, int event);
3808 3811
3809 /** 3812 /**
3810 * Create new error objects by calling the corresponding error object 3813 * Create new error objects by calling the corresponding error object
3811 * constructor with the message. 3814 * constructor with the message.
3812 */ 3815 */
3813 class V8_EXPORT Exception { 3816 class V8_EXPORT Exception {
3814 public: 3817 public:
3815 static Local<Value> RangeError(Handle<String> message); 3818 static Local<Value> RangeError(Handle<String> message);
3816 static Local<Value> ReferenceError(Handle<String> message); 3819 static Local<Value> ReferenceError(Handle<String> message);
3817 static Local<Value> SyntaxError(Handle<String> message); 3820 static Local<Value> SyntaxError(Handle<String> message);
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
4388 4391
4389 4392
4390 /** 4393 /**
4391 * Container class for static utility functions. 4394 * Container class for static utility functions.
4392 */ 4395 */
4393 class V8_EXPORT V8 { 4396 class V8_EXPORT V8 {
4394 public: 4397 public:
4395 /** Set the callback to invoke in case of fatal errors. */ 4398 /** Set the callback to invoke in case of fatal errors. */
4396 static void SetFatalErrorHandler(FatalErrorCallback that); 4399 static void SetFatalErrorHandler(FatalErrorCallback that);
4397 4400
4401 /** Set the callback to invoke in case of a timer tracing event. */
4402 static void SetEventLogger(LogEventCallback that);
4403
4398 /** 4404 /**
4399 * Set the callback to invoke to check if code generation from 4405 * Set the callback to invoke to check if code generation from
4400 * strings should be allowed. 4406 * strings should be allowed.
4401 */ 4407 */
4402 static void SetAllowCodeGenerationFromStringsCallback( 4408 static void SetAllowCodeGenerationFromStringsCallback(
4403 AllowCodeGenerationFromStringsCallback that); 4409 AllowCodeGenerationFromStringsCallback that);
4404 4410
4405 /** 4411 /**
4406 * Set allocator to use for ArrayBuffer memory. 4412 * Set allocator to use for ArrayBuffer memory.
4407 * The allocator should be set only once. The allocator should be set 4413 * The allocator should be set only once. The allocator should be set
(...skipping 2047 matching lines...) Expand 10 before | Expand all | Expand 10 after
6455 */ 6461 */
6456 6462
6457 6463
6458 } // namespace v8 6464 } // namespace v8
6459 6465
6460 6466
6461 #undef TYPE_CHECK 6467 #undef TYPE_CHECK
6462 6468
6463 6469
6464 #endif // V8_H_ 6470 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698