几个时间后,在Xamarin Android应用程序中打开并关闭后速度缓慢

发布于 2025-02-10 13:25:57 字数 1774 浏览 2 评论 0原文

我试图检查Xamarin应用程序的性能。在审查应用程序时,有时我会觉得当表格打开和关闭时,应用程序很慢。

这是日志的输出。

[View] requestLayout() improperly called by 
crc643f46942d9dd1fff9.ScrollViewContainer{6bd65b5 V.E...... ......ID 
0,0-1080,2115} during layout: running second layout pass
[EGL_emulation] app_time_stats: avg=20.76ms min=4.90ms max=407.70ms 
count=49
[EGL_emulation] app_time_stats: avg=17.37ms min=5.31ms max=281.48ms 
count=49
[View] requestLayout() improperly called by 
crc643f46942d9dd1fff9.ScrollViewContainer{ee6ddca V.E...... ......ID 
0,0-1080,2115} during layout: running second layout pass
[EGL_emulation] app_time_stats: avg=27.24ms min=5.63ms max=655.06ms 
count=49
[EGL_emulation] app_time_stats: avg=15.11ms min=5.71ms max=223.53ms 
 count=48
[ame.pcrwsmobil] NativeAlloc concurrent copying GC freed 15993(626KB) 
 AllocSpace objects, 0(0B) LOS objects, 49% free, 5447KB/10MB, paused 
1.190ms,106us total 110.076ms
[View] requestLayout() improperly called by
crc643f46942d9dd1fff9.ScrollViewContainer{9c288ef V.E...... ......ID 
0,0-1080,2115} during layout: running second layout pass
[EGL_emulation] app_time_stats: avg=25.51ms min=5.87ms max=602.22ms 
count=49
[EGL_emulation] app_time_stats: avg=18.73ms min=6.01ms max=193.78ms 
count=42

没有什么可以以形式负载运行任何东西。 设备日志

”在此处输入图像描述”

I was trying to check the performance of my Xamarin application. While I was reviewing the application, sometimes I felt the application was slow when the form opened and closed.

Here is the output of the logs.

[View] requestLayout() improperly called by 
crc643f46942d9dd1fff9.ScrollViewContainer{6bd65b5 V.E...... ......ID 
0,0-1080,2115} during layout: running second layout pass
[EGL_emulation] app_time_stats: avg=20.76ms min=4.90ms max=407.70ms 
count=49
[EGL_emulation] app_time_stats: avg=17.37ms min=5.31ms max=281.48ms 
count=49
[View] requestLayout() improperly called by 
crc643f46942d9dd1fff9.ScrollViewContainer{ee6ddca V.E...... ......ID 
0,0-1080,2115} during layout: running second layout pass
[EGL_emulation] app_time_stats: avg=27.24ms min=5.63ms max=655.06ms 
count=49
[EGL_emulation] app_time_stats: avg=15.11ms min=5.71ms max=223.53ms 
 count=48
[ame.pcrwsmobil] NativeAlloc concurrent copying GC freed 15993(626KB) 
 AllocSpace objects, 0(0B) LOS objects, 49% free, 5447KB/10MB, paused 
1.190ms,106us total 110.076ms
[View] requestLayout() improperly called by
crc643f46942d9dd1fff9.ScrollViewContainer{9c288ef V.E...... ......ID 
0,0-1080,2115} during layout: running second layout pass
[EGL_emulation] app_time_stats: avg=25.51ms min=5.87ms max=602.22ms 
count=49
[EGL_emulation] app_time_stats: avg=18.73ms min=6.01ms max=193.78ms 
count=42

Nothing's running anything in form load.
Here is the functions and design
Device log
Device log

enter image description here

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

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

发布评论

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

评论(1

╄→承喏 2025-02-17 13:25:57

您不断将新页面推到导航堆上。您需要使用PushModal打开模式页面,然后

await Navigation.PopModalAsync()

将其从堆栈中删除。否则,您只需打开新页面即可消耗记忆。

You keep pushing new pages onto the navigation stack. You need to use pushmodal to open a modal page and then

await Navigation.PopModalAsync()

to remove it from the stack. Otherwise you just keep opening new pages and they consume memory.

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