[Webkit-unassigned] [Bug 152038] Web Inspector: console.count() shouldn't show a colon in front of a number

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 11 23:16:12 PST 2016


--- Comment #18 from Nikita Vasilyev <nvasilyev at apple.com> ---
(In reply to comment #16)
> I've been wondering for a while now if we should just drop console.count.
> Last I checked, no browser implements a sufficiently useful version of it.
> They all track just line number, so in minified sources it is completely
> useless as all counts() are considered the same line.
> Has this grown in popularity somewhere? Is there a good use case for it?

I've seen people use console.count("method name") for some basic profiling, e.g.:

function foo() {

function bar() {

We could draw charts for console.count:

foo: 42 ****************
bar: 10 ****

I'd use it.

I don't know where would we put this in the UI though.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160112/cb0e999c/attachment.html>

More information about the webkit-unassigned mailing list