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

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: Remove check for an existing event_logger, as at this point, none might have already been set 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') | no next file with comments »
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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
4184 * Request garbage collection in this Isolate. It is only valid to call this 4187 * Request garbage collection in this Isolate. It is only valid to call this
4185 * function if --expose_gc was specified. 4188 * function if --expose_gc was specified.
4186 * 4189 *
4187 * This should only be used for testing purposes and not to enforce a garbage 4190 * This should only be used for testing purposes and not to enforce a garbage
4188 * collection schedule. It has strong negative impact on the garbage 4191 * collection schedule. It has strong negative impact on the garbage
4189 * collection performance. Use IdleNotification() or LowMemoryNotification() 4192 * collection performance. Use IdleNotification() or LowMemoryNotification()
4190 * instead to influence the garbage collection schedule. 4193 * instead to influence the garbage collection schedule.
4191 */ 4194 */
4192 void RequestGarbageCollectionForTesting(GarbageCollectionType type); 4195 void RequestGarbageCollectionForTesting(GarbageCollectionType type);
4193 4196
4197 /**
4198 * Set the callback to invoke for logging event.
4199 */
4200 void SetEventLogger(LogEventCallback that);
4201
4194 private: 4202 private:
4195 Isolate(); 4203 Isolate();
4196 Isolate(const Isolate&); 4204 Isolate(const Isolate&);
4197 ~Isolate(); 4205 ~Isolate();
4198 Isolate& operator=(const Isolate&); 4206 Isolate& operator=(const Isolate&);
4199 void* operator new(size_t size); 4207 void* operator new(size_t size);
4200 void operator delete(void*, size_t); 4208 void operator delete(void*, size_t);
4201 4209
4202 void SetObjectGroupId(internal::Object** object, UniqueId id); 4210 void SetObjectGroupId(internal::Object** object, UniqueId id);
4203 void SetReferenceFromGroup(UniqueId id, internal::Object** object); 4211 void SetReferenceFromGroup(UniqueId id, internal::Object** object);
(...skipping 2251 matching lines...) Expand 10 before | Expand all | Expand 10 after
6455 */ 6463 */
6456 6464
6457 6465
6458 } // namespace v8 6466 } // namespace v8
6459 6467
6460 6468
6461 #undef TYPE_CHECK 6469 #undef TYPE_CHECK
6462 6470
6463 6471
6464 #endif // V8_H_ 6472 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698