几个时间后,在Xamarin Android应用程序中打开并关闭后速度缓慢
我试图检查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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不断将新页面推到导航堆上。您需要使用PushModal打开模式页面,然后
将其从堆栈中删除。否则,您只需打开新页面即可消耗记忆。
You keep pushing new pages onto the navigation stack. You need to use pushmodal to open a modal page and then
to remove it from the stack. Otherwise you just keep opening new pages and they consume memory.