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

Unified Diff: include/v8.h

Issue 10837021: add ETW for V8 symbols
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 480cbaa9553f295f6ad844f789e54fa128059402..8d3cfb7c6d4cb605b1e0e196ce1d11f170143477 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -2955,6 +2955,27 @@ class V8EXPORT ExternalResourceVisitor { // NOLINT
/**
+ * CodeAddressEvent is used as a callback function for external logging
+ * of symbols to address.
+ */
+enum CodeAddressOperation {
+ Add = 1,
+ Move,
+ Remove,
+ Reset,
+ Source
+};
+
+typedef bool (*CodeAddressEvent)(CodeAddressOperation operation,
+ const void* addr1,
+ int len,
+ const char* symbol,
+ int tag,
+ const void* addr2,
+ int line);
+
+
+/**
* Container class for static utility functions.
*/
class V8EXPORT V8 {
@@ -3366,6 +3387,13 @@ class V8EXPORT V8 {
*/
static int ContextDisposedNotification();
+ /**
+ * This function sets or removes callback to get code address locations.
+ * Set enumExisting flag to true to enumerate existing code addresses.
+ */
+ static void SetCodeAddressEventCallback(CodeAddressEvent callback,
+ bool enumExisting);
+
private:
V8();
« 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