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

Unified Diff: src/v8.h

Issue 10706002: Implements a new API to set a function entry hook for profiling. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Sketch ARM code stub. Created 8 years, 6 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
Index: src/v8.h
diff --git a/src/v8.h b/src/v8.h
index 67716d8107a6014181d3cbd646e8ae561d8c694c..afb0d4e4d59fa71cf1a3fc08b9a6d22d4c30e925 100644
--- a/src/v8.h
+++ b/src/v8.h
@@ -99,6 +99,12 @@ class V8 : public AllStatic {
// Support for return-address rewriting profilers.
static void SetReturnAddressLocationResolver(
ReturnAddressLocationResolver resolver);
+ // Support for a function entry profiling hook.
+ static bool SetFunctionEntryHook(FunctionEntryHook entry_hook);
+ // Returns the location of the function entry profiling hook.
+ static const FunctionEntryHook* GetFunctionEntryHookLocation();
+ // Returns a function that dispatches to the entry profiling hook.
+ static FunctionEntryHook GetFunctionEntryHookDispatcher();
danno 2012/07/10 09:37:13 Why does the dispatch need to be exposed in the AP
Sigurður Ásgeirsson 2012/07/11 14:50:34 This is src/v8.h, in namespace internal::V8, which
// Random number generation support. Not cryptographically safe.
static uint32_t Random(Context* context);
// We use random numbers internally in memory allocation and in the

Powered by Google App Engine
This is Rietveld 408576698