Commit f0bae5cd authored by kmccullough@apple.com's avatar kmccullough@apple.com

2008-05-19 Kevin McCullough <kmccullough@apple.com>

        Reviewed by Adam.

        -build fix.

        * bindings/js/JSConsoleCustom.cpp:
        (WebCore::JSConsole::profile):
        * page/Console.cpp:
        (WebCore::Console::profile):
        * page/Console.h:
        * page/Console.idl:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33595 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 45d20367
2008-05-19 Kevin McCullough <kmccullough@apple.com>
Reviewed by Adam.
-build fix.
* bindings/js/JSConsoleCustom.cpp:
(WebCore::JSConsole::profile):
* page/Console.cpp:
(WebCore::Console::profile):
* page/Console.h:
* page/Console.idl:
2008-05-19 Alp Toker <alp@nuanti.com>
Reviewed by Maciej.
......@@ -56,4 +56,10 @@ JSValue* JSConsole::warn(ExecState* exec, const List& arguments)
return jsUndefined();
}
JSValue* JSConsole::profile(ExecState* exec, const List& arguments)
{
impl()->profile(exec, arguments);
return jsUndefined();
}
} // namespace WebCore
......@@ -129,12 +129,13 @@ void Console::log(ExecState* exec, const List& arguments)
page->inspectorController()->addMessageToConsole(JSMessageSource, LogMessageLevel, exec, arguments, 0, url.string());
}
void Console::profile(ExecState* exec, const String& title) const
void Console::profile(ExecState* exec, const List& arguments) const
{
Page* page = m_frame->page();
if (!page)
return;
const UString& title = arguments[0]->toString(exec);
Profiler::profiler()->startProfiling(exec, page->group().identifier(), title);
}
......
......@@ -70,7 +70,7 @@ namespace WebCore {
void info(KJS::ExecState*, const KJS::List& arguments);
void log(KJS::ExecState*, const KJS::List& arguments);
void warn(KJS::ExecState*, const KJS::List& arguments);
void profile(KJS::ExecState*, const String& title) const;
void profile(KJS::ExecState*, const KJS::List& arguments) const;
void profileEnd() const;
private:
......
......@@ -34,7 +34,7 @@ module window {
[Custom] void log();
[Custom] void warn();
void profile(in DOMString title);
[Custom] void profile(in DOMString title);
void profileEnd();
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment