what is the purpose of “rawproto” files?

无人久伴 提交于 2019-12-09 13:07:19

问题


In Android Studio, in

~/StudioProjects/$APPLICATION/build/android-profile/,

there are many files profile-*.rawproto, e.g., profile-2017-04-25-18-19-51-815.rawproto.

I have never seen the file suffix .rawproto, does this suggest a certain kind of file, and if so, what is this file generally used for?

With some digging online, it seems to be related to Gradle in IntelliJ/Studio, which is a sensible conclusion since it is in the build directory. But this is all the information I am able to find on what this is or what it should do.


回答1:


That filename pattern is mentioned in ProcessProfileWriterFactory.java, part of the Android Gradle plugin. Once a real filename is created, it is passed to ProcessProfileWriter.java which seems to write some analytics data about the build process to a file. The rawproto file format is probably Google's Protocol Buffers.



来源:https://stackoverflow.com/questions/43881718/what-is-the-purpose-of-rawproto-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!