javascript - How can I display own Events in Chrome dev tools -


i measure application, performance sensitive.

to know if there option in chrome dev tools or in else view it's provided in network tab, own, js triggered events in (like red / blue line).

is there way so?

the obvious solution use console. gives more tools simple console.log:

  • formatting (console.log("%cthis formatted large, blue text", "color: blue; font-size: x-large");)

formatted message

  • measuring time (console.time("array initialize"); longrunningoperation(); console.timeend("array initialize");)

measuring time

  • grouping (console.group("authenticating user '%s'", user); authentication(); console.groupend();)

grouping

  • marking events on timeline (console.timestamp("adding result");)

marking timeline

this should more enough create readable log of custom events. see official docs more tips on using console.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -