X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/81345200c95645a1b0d2635520f96ad55dfde63f..refs/heads/master:/profiler/LegacyProfiler.h diff --git a/profiler/LegacyProfiler.h b/profiler/LegacyProfiler.h index cc5f63b..af0ab41 100644 --- a/profiler/LegacyProfiler.h +++ b/profiler/LegacyProfiler.h @@ -32,12 +32,12 @@ #include "Profile.h" #include #include +#include #include namespace JSC { class ExecState; -class VM; class JSGlobalObject; class JSObject; class JSValue; @@ -47,13 +47,17 @@ struct CallIdentifier; class LegacyProfiler { WTF_MAKE_FAST_ALLOCATED; public: - JS_EXPORT_PRIVATE static LegacyProfiler* profiler(); + JS_EXPORT_PRIVATE static LegacyProfiler* profiler(); static CallIdentifier createCallIdentifier(ExecState*, JSValue, const WTF::String& sourceURL, unsigned defaultLineNumber, unsigned defaultColumnNumber); - JS_EXPORT_PRIVATE void startProfiling(ExecState*, const WTF::String& title); - JS_EXPORT_PRIVATE PassRefPtr stopProfiling(ExecState*, const WTF::String& title); + JS_EXPORT_PRIVATE void startProfiling(ExecState*, const WTF::String& title, PassRefPtr); + JS_EXPORT_PRIVATE RefPtr stopProfiling(ExecState*, const WTF::String& title); void stopProfiling(JSGlobalObject*); + // Used to ignore profile node subtrees rooted at InjectedScript calls. + JS_EXPORT_PRIVATE void suspendProfiling(ExecState*); + JS_EXPORT_PRIVATE void unsuspendProfiling(ExecState*); + void willExecute(ExecState* callerCallFrame, JSValue function); void willExecute(ExecState* callerCallFrame, const WTF::String& sourceURL, unsigned startingLineNumber, unsigned startingColumnNumber); void didExecute(ExecState* callerCallFrame, JSValue function);