Flex:如何使用 Flex Builder 分析器对 UI 操作进行计时?

发布于 2024-08-19 05:05:56 字数 302 浏览 2 评论 0原文

我的 Flex 应用程序处理用户请求并向后端发出 HTTP 请求以进行数据处理,并将数据呈现在 UI 上。 (典型的基于 HTTP 请求-响应的应用程序)。

我需要对整个系统进行性能分析,以便识别和解决瓶颈,因此需要测量整个周期的时间分割。 (从用户在 UI 上执行操作到他在 UI 上获得结果的时间,渲染后等)。

是否可以使用 Flex profiler 以某种方式映射这些时间(按操作分割)?我与它的最初交互(我不得不说,我是 Flex 和 Profiler 新手)并不表明这是可能的,尽管我可以获取在不同功能上花费的时间的数据。

多谢!

My flex application, processes user request and makes an HTTP request to the backend, for data processing, and renders the data on the UI. (typical HTTP request-response based application).

I need to do a performance analysis on the whole system, in order to identify and resolve bottlenecks, hence need to measure the time-split of the whole cycle. (time since the user performed the action on UI to the time he got the result on the UI, after rendering and all).

Would it be possible to use Flex profiler to map these times (split per action) somehow?. My initial interaction with it (and I have to say, I am a Flex and Profiler newbie), does not suggest it would be possible, though I can get data for time spent on different functions.

Thanks a lot!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

偷得浮生 2024-08-26 05:05:56

Flex Profiler 并非完全不具有干扰性。当我遇到 UI 问题时,我使用了良好的旧手动测量值(带有“(new DATE()).time”)。这是一种快速、简单且无干扰的方法,因为我获得了下次更新之前和之后(2 次调用)的实际时间,然后计算差异(如果使用 uint 则非常便宜)并得到结果。就我而言,这不是 GUI,而是服务器响应,我通过使用 Charles Proxy 发现了这一点。

Flex Profiler is not exactly unintrusive. When I had problems with the UI, I used good old hand measured values (with "(new DATE()).time"). It was a fast, easy and unintrusive approach, as I got the actual time before the next update and after (2 calls), then calculated the difference (very cheap if you use uints) and had my result. In my case, it wasn't the gui, but the server response, which I found out by using Charles Proxy.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文