应用程序性能分析/性能测试 [英] Application profiling / performance testing

查看:109
本文介绍了应用程序性能分析/性能测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(注意:我想在android上进行测试)

(Note: I want to test it on android)

我有一个本机反应的应用程序,还有一个用flutter开发的类似应用程序.我想对其进行配置文件/测试,并查看CPU的使用情况,检查它们何时丢帧等.

I have an application in react native and a similar application made with flutter. I want to profile / test it and see cpu usage, check when they drop frames, etc.

我知道调试模式下的应用程序的性能会更差.因此,我认为我必须在发布模式下测试这两个应用程序,因为我不知道有多少调试模式会使这两个应用程序停滞不前. 但是据我了解,android性能分析在发布模式下不起作用(不了解systrace,但仍然存在一些问题).

I know that applications in debugmode are worse in performance. So I thought I have to test these two applications in release mode, because I dont know how much debugmode hold these applications back. But from my understanding android profiling does not work in release mode (don't know about systrace, still have some problems with it).

所以我的问题是,如何比较这两个应用程序?有没有办法与发布版本建立关系?还是应该测试它并与调试版本进行比较?

So my question, how do I compare these 2 apps? Is there a way to do with release builds? Or should I test and compare it with a debug build?

我读到flutter的配置文件版本与发行版本的版本关系密切,是否在调试模式下运行并以react-native的方式关闭开发模式?

I read that flutter has a profile build which builds closely to a release build, is running in debugmode and turning off dev mode in react-native about the same?

推荐答案

是的,个人资料"模式可以像在发行版中运行一样测试Flutter应用.

Yes, Profile mode is how you would test your Flutter app as if it is running in release.

它使用DevTools来帮助调试UI,内存,性能,日志等.

It uses DevTools which can help debug the UI, memory, performance, logs, etc.

您提到的与发布版本紧密构建" 在以下位置被提及:

And what you noted, "builds closely to a release build", is mentioned at:

Flutter的配置文件模式几乎可以编译并启动您的应用程序 等同于释放模式

Flutter’s profile mode compiles and launches your application almost identically to release mode

最后两个链接提供了有关如何使用其每个功能的大量信息.

The last two links provide a wealth of information on how to use each of their features.

您甚至可以查看 flutter/Performance最佳做法,以确保在进行测试之前,您已经获得了最好的体验.

You can even check out flutter/Performance best practices to make sure you've got the best experience before you jump into testing.

这篇关于应用程序性能分析/性能测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆