JavaScriptCore:
authorkmccullough@apple.com <kmccullough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Apr 2008 17:20:01 +0000 (17:20 +0000)
committerkmccullough@apple.com <kmccullough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Apr 2008 17:20:01 +0000 (17:20 +0000)
commitc9dce257e4c89e6224889dca8cf19bc60d80e92d
tree61f8bd169f8222377fdfd87740a6ef4807a4f789
parent70e5a6dc0a9cdc33a1c104ae92219947c72a3c0e
JavaScriptCore:

2008-04-24  Kevin McCullough  <kmccullough@apple.com>

        Reviewed by Adam and Sam.

        -<rdar://problem/5770054> JavaScript profiler (10928)
        -Only profile the page group that starts profiling to avoid profiling
        tools that shouldn't be profiled unless explicitly requested to.

        * JavaScriptCore.exp: Export new signature.
        * kjs/JSGlobalObject.cpp: Add unique identifiers to the JSGlobalObject.
        (KJS::JSGlobalObject::init):
        * kjs/JSGlobalObject.h: Ditto.
        (KJS::JSGlobalObject::setPageGroupIdentifier):
        (KJS::JSGlobalObject::pageGroupIdentifier):
        * profiler/Profiler.cpp: Check the identifier of the page group of the
        lexical global exec state and only profile if it matches the given page
        group identifier.
        (KJS::Profiler::startProfiling):
        (KJS::Profiler::willExecute):
        (KJS::Profiler::didExecute):
        * profiler/Profiler.h: Ditto.
        (KJS::Profiler::Profiler):

WebCore:

2008-04-24  Kevin McCullough  <kmccullough@apple.com>

        Reviewed by Adam and Sam.

        -<rdar://problem/5770054> JavaScript profiler (10928)
        -Only profile the page group that starts profiling to avoid profiling
        tools that shouldn't be profiled unless explicitly requested to.

        * bindings/js/kjs_proxy.cpp: When a new global object is created set its
        page group identifier.
        (WebCore::KJSProxy::clear):
        (WebCore::KJSProxy::initScript):
        * page/Console.cpp: When calling console.profile set the identifier of
        the page group being profiled.
        (WebCore::Console::profile):
        * page/PageGroup.cpp: Implement unique identifiers.
        (WebCore::getUniqueIdentifier):
        (WebCore::PageGroup::PageGroup):
        * page/PageGroup.h: Ditto.
        (WebCore::PageGroup::identifier):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@32495 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/JavaScriptCore.exp
JavaScriptCore/kjs/JSGlobalObject.cpp
JavaScriptCore/kjs/JSGlobalObject.h
JavaScriptCore/profiler/Profiler.cpp
JavaScriptCore/profiler/Profiler.h
WebCore/ChangeLog
WebCore/bindings/js/kjs_proxy.cpp
WebCore/page/Console.cpp
WebCore/page/PageGroup.cpp
WebCore/page/PageGroup.h