#4 Support for Custom Times in the Profiling Object.


In the last days I've been playing a little with the Service Browser and it ocured to me that in some cases i would like to see some other times from my services.
since the profiling object its build from the global variable profiling any method could add some custom variable.
global $profiling;
$time = microtime(true);
$result = mysql_query($query);
$profiling['databaseTime'] += microtime(true) - $time;

and in the Browser with some basic reflection one can obtain the variable databaseTime in the profiling Object and build a Label "Database : XX ms" to be shown in the time Statistics. it can be a subitem from the service call time.

Hope this makes it into the next release since I think it needs minimal coding and for some cases it would be usefull to see wich object in particular creates a bottleneck or something like that.


  • Janther

    Janther - 2010-10-22

    Just learned that this could be done using the NetDebug::trace also but still it would be nice to have an option.

  • Danny Kopping

    Danny Kopping - 2010-10-22
    • assigned_to: nobody --> dannykopping
  • Danny Kopping

    Danny Kopping - 2010-10-22

    Another interesting idea... Perhaps we can include some type of hook so that one can add their own profiling watch expressions... Will think about it for a bit and consider putting it into the next release.

  • ariels

    ariels - 2011-09-16

    the Flex service browser is gone. So if you need some stats/times in the new one let us know, we can maybe work a system out where you can add your own custom data or something.

  • ariels

    ariels - 2011-09-16
    • status: open --> closed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks