[Webkit-unassigned] [Bug 34481] Web Inspector: Start unforking profiler and debugger stuff
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 2 09:47:56 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=34481
Pavel Feldman <pfeldman at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #47941|review? |review-
Flag| |
--- Comment #4 from Pavel Feldman <pfeldman at chromium.org> 2010-02-02 09:47:55 PST ---
(From update of attachment 47941)
r- for no comments on the migration scenario.
> +
> + const String& title() const { return m_title; }
Return copy in order not to deal with the ownership.
> - JSC::StringBuilder message;
> - message.append("Profile \"webkit-profile://");
> - message.append((UString)encodeWithURLEscapeSequences(CPUProfileType));
> - message.append("/");
> - message.append((UString)encodeWithURLEscapeSequences(profile->title()));
> - message.append("#");
> - message.append(UString::from(profile->uid()));
> - message.append("\" finished.");
> - addMessageToConsole(JSMessageSource, LogMessageType, LogMessageLevel, message.release(), lineNumber, sourceURL);
> + String message;
> + message += "Profile \"webkit-profile://";
> + message += encodeWithURLEscapeSequences(CPUProfileType);
> + message += "/";
> + message += encodeWithURLEscapeSequences(profile->title());
> + message += "#";
> + message += String::number(profile->uid());
> + message += "\" finished.";
> + addMessageToConsole(JSMessageSource, LogMessageType, LogMessageLevel, message, lineNumber, sourceURL);
> }
>
Why not to use String::format?
> -void InspectorController::addStartProfilingMessageToConsole(const UString& title, unsigned lineNumber, const UString& sourceURL)
> +void InspectorController::addStartProfilingMessageToConsole(const String& title, unsigned lineNumber, const String& sourceURL)
> {
> - JSC::StringBuilder message;
> - message.append("Profile \"webkit-profile://");
> - message.append(encodeWithURLEscapeSequences(CPUProfileType));
> - message.append("/");
> - message.append(encodeWithURLEscapeSequences(title));
> - message.append("#0\" started.");
> - addMessageToConsole(JSMessageSource, LogMessageType, LogMessageLevel, message.release(), lineNumber, sourceURL);
> + String message;
> + message += "Profile \"webkit-profile://";
> + message += encodeWithURLEscapeSequences(CPUProfileType);
> + message += "/";
> + message += encodeWithURLEscapeSequences(title);
> + message += "#0\" started.";
> + addMessageToConsole(JSMessageSource, LogMessageType, LogMessageLevel, message, lineNumber, sourceURL);
> }
>
ditto
> +#if ENABLE(JAVASCRIPT_DEBUGGER) || USE(V8)
>
> -#if ENABLE(INSPECTOR)
> +#if ENABLE(INSPECTOR) && USE(JSC)
> InspectorController* controller = page->inspectorController();
> // FIXME: log a console message when profiling is disabled.
> -#if ENABLE(INSPECTOR)
> +#if ENABLE(INSPECTOR) && USE(JSC)
> resolvedTitle = controller->getCurrentUserInitiatedProfileName(true);
> #else
Could you comment on the fact that this is a temporary measure that will exist
until JAVASCRIPT_DEBUGGER is enabled in V8 case?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list