1. #1
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    567
    Vote Rating
    31
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default Debugging Time Issues

    Debugging Time Issues


    Ext.ux.mgd.logger.Time

    Hi,

    I have uploaded a debugging component - a timer.
    This works much like the console.time('demo') . You start timing with
    Code:
    Ext.ux.Time.start('demo')
    and get the result with
    Code:
    Ext.ux.Time.stop('demo')
    Further you can add this to keep the control on a long term with adding start and getTime like:
    Code:
    var curTime = Ext.ux.Time.getTime('demo')
    I have uploaded it to the Sencha Market.

    Sencha Market Link

    In my live example you can press the buttons on the stop watch.
    I am using Ext.defer(fn,1000) and send a getTime to request the current time.
    The live example can be found at:

    German

    http://www.m-gd.com/sencha-component-time-logger/

    English (currently translating)
    http://www.m-gd.com/en/sencha-component-time-logger/

    I am looking forward to some feedback to possibly improve the component

  2. #2
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Chisinau, Moldova
    Posts
    642
    Vote Rating
    25
    vadimv will become famous soon enough vadimv will become famous soon enough

      0  

    Default


    what are the advantages of using your extension ?

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    567
    Vote Rating
    31
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default


    E.g.:
    Having a lot of devices which run at different speed I set this to a maximum time and if the any device takes longer than the time I set an alarm to notifiy the tester (I am not testing it on all devices, so anyone can give me feedback).
    As I am not always having the device output of the console in my logcat I am getting the output to a popup.
    Further ie does not support the time command.

    Mostly I use it for initialization/startup of an app and for localStorage queries.

    Knowing exactly which part of the app takes a lot of time is essential to me.

Thread Participants: 1

Tags for this Thread