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

Need help in packaging app using TideSDK on Windows -

java - Why does my date parsing return a weird date? -