diff options
author | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2017-05-30 12:48:17 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2017-05-30 12:48:17 +0200 |
commit | 881da28418d380042aa95a97f0cbd42560a64f7c (patch) | |
tree | a794dff3274695e99c651902dde93d934ea7a5af /Source/JavaScriptCore/profiler/LegacyProfiler.h | |
parent | 7e104c57a70fdf551bb3d22a5d637cdcbc69dbea (diff) | |
parent | 0fcedcd17cc00d3dd44c718b3cb36c1033319671 (diff) | |
download | qtwebkit-881da28418d380042aa95a97f0cbd42560a64f7c.tar.gz |
Merge 'wip/next' into dev
Change-Id: Iff9ee5e23bb326c4371ec8ed81d56f2f05d680e9
Diffstat (limited to 'Source/JavaScriptCore/profiler/LegacyProfiler.h')
-rw-r--r-- | Source/JavaScriptCore/profiler/LegacyProfiler.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/Source/JavaScriptCore/profiler/LegacyProfiler.h b/Source/JavaScriptCore/profiler/LegacyProfiler.h index 6db57cbf2..af0ab41e2 100644 --- a/Source/JavaScriptCore/profiler/LegacyProfiler.h +++ b/Source/JavaScriptCore/profiler/LegacyProfiler.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008, 2012 Apple Inc. All rights reserved. + * Copyright (C) 2008, 2012, 2014 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -10,7 +10,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of + * 3. Neither the name of Apple Inc. ("Apple") nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * @@ -32,12 +32,12 @@ #include "Profile.h" #include <wtf/PassRefPtr.h> #include <wtf/RefPtr.h> +#include <wtf/Stopwatch.h> #include <wtf/Vector.h> namespace JSC { class ExecState; -class VM; class JSGlobalObject; class JSObject; class JSValue; @@ -47,24 +47,28 @@ struct CallIdentifier; class LegacyProfiler { WTF_MAKE_FAST_ALLOCATED; public: - JS_EXPORT_PRIVATE static LegacyProfiler* profiler(); - static CallIdentifier createCallIdentifier(ExecState*, JSValue, const WTF::String& sourceURL, int lineNumber); + 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<Profile> stopProfiling(ExecState*, const WTF::String& title); + JS_EXPORT_PRIVATE void startProfiling(ExecState*, const WTF::String& title, PassRefPtr<Stopwatch>); + JS_EXPORT_PRIVATE RefPtr<Profile> 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, int startingLineNumber); + void willExecute(ExecState* callerCallFrame, const WTF::String& sourceURL, unsigned startingLineNumber, unsigned startingColumnNumber); void didExecute(ExecState* callerCallFrame, JSValue function); - void didExecute(ExecState* callerCallFrame, const WTF::String& sourceURL, int startingLineNumber); + void didExecute(ExecState* callerCallFrame, const WTF::String& sourceURL, unsigned startingLineNumber, unsigned startingColumnNumber); void exceptionUnwind(ExecState* handlerCallFrame); - const Vector<RefPtr<ProfileGenerator> >& currentProfiles() { return m_currentProfiles; }; + const Vector<RefPtr<ProfileGenerator>>& currentProfiles() { return m_currentProfiles; }; private: - Vector<RefPtr<ProfileGenerator> > m_currentProfiles; + Vector<RefPtr<ProfileGenerator>> m_currentProfiles; static LegacyProfiler* s_sharedLegacyProfiler; }; |