什么是 gradle 工件转换任务以及为什么需要这么长时间?
我为构建运行了剖面,在伪像变换标签下,我可以看到转换任务所占据的不同时间。
首先,我认为1M16.09S
标记是该过程在我启动构建后完成1M,其余26分钟时间是用于编译工作。但是,如果我在持续时间列中所有时间概括,它们将总结至27m21.96s。因此,我知道每个变换任务都需要右边提到的时间。
所以我想知道,跑步转换需要花费太多时间吗?为什么要花100万才能改变一个普通的罐子?
I ran the profiler for my build, and under Artifact Transform tab, I can see different times taken by the transform tasks.
First I thought that the 1m16.09s
mark was that the process finished 1m after I started the build, and that the rest of 26 minutes time was for compilation efforts. However, if I sum all of the times in the Duration column, they will sum up to exactly 27m21.96s. Thus I understand that each of the transform tasks take the time mentioned at the right.
So I am wondering, do running transforms take that much time? Why would it take 1m to transform a common jar?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论