开发者

How can I measure Flex/Java app response and rendering time?

开发者 https://www.devze.com 2023-04-06 12:54 出处:网络
We have Flex/Java app with a typical scenario: Clicking the button Preparing request Sending request to the backend

We have Flex/Java app with a typical scenario:

  1. Clicking the button
  2. Preparing request
  3. Sending request to the backend
  4. Receiving a response from the backend
  5. Rendering the respons开发者_JAVA百科e

How can I measure time from the start of step 1 to end of step 5?


The most common approach would be to use the getTimer() method. Call it when you click the button; and call it again when you finish rendering the response. Compare the two values to get the amount of time that has passed.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号