Make comments more discoverable in the web UI
The profile protobuf has a field for unstructured text comments. The web UI supports them. However, you need to know to click on the program name in the top corner to see them. I think we should make comments more discoverable, since they could carry important information. My initial thought is that we could show the dialog box by default when opening the web UI if there are comments attached to the profile. Or maybe put a little question mark next to the program name to give some indication what clicking it will do (show you information about this profile). But I'm open to other ideas.
Context: I was recently looking into this as part of https://github.com/golang/go/issues/79179, where we'll want a way to report that some information is known to be inaccurate or missing from a profile. We've considered adding an informational root frame to the profile, like "RSS isn't supported on platform X" or "Go memory usage (X GiB) exceeds RSS (Y GiB)". However, we're only considering that because it's immediately visible. The comment field seems well suited for this kind of information. I didn't know until working on that issue that the UI even supported comments. It would not have occurred to me to ever click on the program name in the top corner; I only found out after grepping around for "comment" in the source code.
Source: google/pprof