ctoc is a lightweight tool based on gocloc that analyzes token-level information of codebases. With extremely fast performance, ctoc helps developers gain deeper insights into their code and improves the efficiency of locating and solving issues when dealing with large codebases. It supports multiple programming languages, including Go, XML, YAML, Markdown, etc., allowing the viewing of token counts for different languages within the codebase. ctoc also offers advanced usage, such as viewing and sorting token counts by file.