[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5103":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":32,"discoverSource":33},5103,"pprof","google\u002Fpprof","google","pprof is a tool for visualization and analysis of profiling data","",null,"Go",9200,661,124,46,0,2,9,32,8,76.16,"Apache License 2.0",false,"main",[26,27,5,28],"performance","performance-analysis","profiler","2026-06-12 04:00:24","[![Github Action CI](https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fpprof\u002Fworkflows\u002Fci\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fpprof\u002Factions)\n[![Codecov](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fgoogle\u002Fpprof\u002Fgraph\u002Fbadge.svg)](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fgoogle\u002Fpprof)\n[![Go Reference](https:\u002F\u002Fpkg.go.dev\u002Fbadge\u002Fgithub.com\u002Fgoogle\u002Fpprof\u002Fprofile.svg)](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002Fgoogle\u002Fpprof\u002Fprofile)\n\n# Introduction\n\npprof is a tool for visualization and analysis of profiling data.\n\npprof reads a collection of profiling samples in profile.proto format and\ngenerates reports to visualize and help analyze the data. It can generate both\ntext and graphical reports (through the use of the dot visualization package).\n\nprofile.proto is a protocol buffer that describes a set of callstacks\nand symbolization information. A common usage is to represent a set of\nsampled callstacks from statistical profiling. The format is\ndescribed on the [proto\u002Fprofile.proto](.\u002Fproto\u002Fprofile.proto) file. For details on protocol\nbuffers, see https:\u002F\u002Fdevelopers.google.com\u002Fprotocol-buffers\n\nProfiles can be read from a local file, or over http. Multiple\nprofiles of the same type can be aggregated or compared.\n\nIf the profile samples contain machine addresses, pprof can symbolize\nthem through the use of the native binutils tools (addr2line and nm).\n\n**This is not an official Google product.**\n\n# Building pprof\n\nPrerequisites:\n\n- Go development kit of a [supported version](https:\u002F\u002Fgolang.org\u002Fdoc\u002Fdevel\u002Frelease.html#policy).\n  Follow [these instructions](http:\u002F\u002Fgolang.org\u002Fdoc\u002Fcode.html) to prepare\n  the environment.\n\n- Graphviz: http:\u002F\u002Fwww.graphviz.org\u002F\n  Optional, used to generate graphic visualizations of profiles\n\nTo build and install it:\n\n    go install github.com\u002Fgoogle\u002Fpprof@latest\n\nThe binary will be installed `$GOPATH\u002Fbin` (`$HOME\u002Fgo\u002Fbin` by default).\n\n# Basic usage\n\npprof can read a profile from a file or directly from a server via http.\nSpecify the profile input(s) in the command line, and use options to\nindicate how to format the report.\n\n## Generate a text report of the profile, sorted by hotness:\n\n```\n% pprof -top [main_binary] profile.pb.gz\nWhere\n    main_binary:  Local path to the main program binary, to enable symbolization\n    profile.pb.gz: Local path to the profile in a compressed protobuf, or\n                   URL to the http service that serves a profile.\n```\n\n## Generate a graph in an SVG file, and open it with a web browser:\n\n```\npprof -web [main_binary] profile.pb.gz\n```\n\n## Run pprof on interactive mode:\n\nIf no output formatting option is specified, pprof runs on interactive mode,\nwhere reads the profile and accepts interactive commands for visualization and\nrefinement of the profile.\n\n```\npprof [main_binary] profile.pb.gz\n\nThis will open a simple shell that takes pprof commands to generate reports.\nType 'help' for available commands\u002Foptions.\n```\n\n## Run pprof via a web interface\n\nIf the `-http` flag is specified, pprof starts a web server at\nthe specified host:port that provides an interactive web-based interface to pprof.\nHost is optional, and is \"localhost\" by default. Port is optional, and is a\nrandom available port by default. `-http=\":\"` starts a server locally at\na random port.\n\n```\npprof -http=[host]:[port] [main_binary] profile.pb.gz\n```\n\nThe preceding command should automatically open your web browser at\nthe right page; if not, you can manually visit the specified port in\nyour web browser.\n\n## Using pprof with Linux Perf\n\npprof can read `perf.data` files generated by the\n[Linux perf](https:\u002F\u002Fperf.wiki.kernel.org\u002Findex.php\u002FMain_Page) tool by using the\n`perf_to_profile` program from the\n[perf_data_converter](https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fperf_data_converter) package.\n\n## Viewing disassembly on Windows\n\nTo view disassembly of profiles collected from Go programs compiled as Windows executables,\nthe executable must be built with `go build -buildmode=exe`. LLVM or GCC must be installed,\nso required tools like `addr2line` and `nm` are available to `pprof`.\n\n## Further documentation\n\nSee [doc\u002FREADME.md](doc\u002FREADME.md) for more detailed end-user documentation.\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for contribution documentation.\n\nSee [proto\u002FREADME.md](proto\u002FREADME.md) for a description of the profile.proto format.\n","pprof 是一个用于可视化和分析性能剖析数据的工具。其核心功能包括读取 profile.proto 格式的性能样本，并生成文本或图形报告以帮助用户理解和优化程序性能。该工具支持通过 HTTP 读取远程数据，可以聚合多个相同类型的剖析文件进行对比分析。此外，如果样本包含机器地址，pprof 还能够利用 binutils 工具（如 addr2line 和 nm）来进行符号化处理。适用于需要深入理解Go语言程序内部运行情况、定位性能瓶颈以及优化代码执行效率的场景。","2026-06-11 03:02:33","top_language"]