We encounter a similar issue for tasktracer. One kind of use cases is to mark the time of an event. It does not intent to measure the length of a duration. For now, tasktracer hooks on console.log() to pick up messages with a predefined prefix string. I am not sure if it deserves a new API.
[email protected] writes: > We are doing exactly that but with a different API in the timeline. > > The Console API comes with 2 methods: > - console.time(aStr); > - console.timeEnd(aStr); > > It looks like this in Firefox' timeline: > http://i.imgur.com/EqHTQde.png > http://i.imgur.com/TUSdORn.png > > Bug 1050502 (about to land) will add a marker in the timeline when > timeEnd is called. -- Sinker -- 天教懶漫帶疏狂 _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
