Bug 48825

Summary: Web Inspector: Console messages about starting and finishing profiling are inconsistent
Product: WebKit Reporter: Mikhail Naganov <mnaganov>
Component: Web Inspector (Deprecated)Assignee: Mikhail Naganov <mnaganov>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Screenshot of the console
none
Proposed fix pfeldman: review+, mnaganov: commit-queue-

Description Mikhail Naganov 2010-11-02 03:02:39 PDT
Created attachment 72643 [details]
Screenshot of the console

Below are contents of the console:

> console.profile("aaa")
Profile "aaa " started.
> console.profileEnd("aaa")
Profile "aaa" finished.
> console.profile("aaa")
Profile "aaa Run 1 " started.
> console.profileEnd("aaa")
Profile "aaa Run 2" finished.

Should be:

> console.profile("aaa")
Profile "aaa" started.          // <-- no trailing space
> console.profileEnd("aaa")
Profile "aaa" finished.
> console.profile("aaa")
Profile "aaa Run 2" started.   // <-- must be "Run 2".
> console.profileEnd("aaa")
Profile "aaa Run 2" finished.
Comment 1 Mikhail Naganov 2010-11-02 08:07:05 PDT
Created attachment 72666 [details]
Proposed fix
Comment 2 Mikhail Naganov 2010-11-03 09:14:31 PDT
Manually committed http://trac.webkit.org/changeset/71242


2010-11-02  Mikhail Naganov  <mnaganov@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: Fix console messages about starting and finishing profiling.

        https://bugs.webkit.org/show_bug.cgi?id=48825

        * inspector/InspectorProfilerAgent.cpp:
        (WebCore::InspectorProfilerAgent::addStartProfilingMessageToConsole):
        * inspector/front-end/ProfilesPanel.js:
        (WebInspector.ProfilesPanel.prototype.displayTitleForProfileLink):