通过 OpenGrok阅读大型源码


通过 OpenGrok阅读大型源码

使用场景

在Android 平台上遇到要查 function define 在哪里,谁call的,文件路径在哪里,

因为 Android 的 Code Size 很大, download code 或者 grep/find 要花费较长时间。

OpenGrok 优点是不需要下载code,不需要grep/find费很长时间,它对一些大型项目code索引效率好,速度快。

非常多的公益大型源码阅读网站, 是基于OpenGrok部署的, 可以体验

  • http://androidxref.com/ ——Android官方
  • http://src.illumos.org/source/ —— illumos, FreeBSD, Linux
  • https://opengrok.housegordon.com/source/ ——GUN项目:busybox bash
  • https://github.com/oracle/opengrok/wiki/Installations  opengrok官方wiki中列举的项目

不知名网友:

https://www.androidbsp.com/opengrok/

https://opengrok.fandrv.com/

其他资源:

Google的Android CodeSearch:https://cs.android.com/

Google更多的CodeSearch: https://cs.opensource.google/