Skip navigation
Currently Being Moderated

How do you measure performance of an item renderer?

Mar 25, 2013 1:41 PM

Tags: #performance #itemrenderer #spark

I'm creating an ItemRenderer in Flex 4.6 and I want to know how to measure total time to create, view and render an item renderer and how long it takes to view and render that item renderer when it's being reused.

 

I just watched the video, Performance Tips and Tricks for Flex and Flash Development and it describes the creation time, validation time and render time and also the reset time. This is described at 36:43 and 40:25.

 

I'm looking for a way to get numbers in milliseconds for total item renderer render time and reset time (what is being done in the video). 

 
Replies
  • Currently Being Moderated
    Mar 25, 2013 8:35 PM   in reply to thx1138

    I don’t have time to watch a video, but why do you need information at this level of detail?

     

    One simpler test to run is to use the default item renderer and see how long it takes for the LayoutManager to dispatch its updateComplete event.  Use getTimer().  Run at least 3 runs to get an average time.

     

    Then do runs with your item renderer.  The difference is roughly what you are trying to measure.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2013 10:07 AM   in reply to thx1138

    He might have been using the profiler, or maybe he instrumented code.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points