runtime, runtime/pprof: add Func.Entry and goroutine-label stubs - #5646
Open
0pcom wants to merge 1 commit into
Open
runtime, runtime/pprof: add Func.Entry and goroutine-label stubs#56460pcom wants to merge 1 commit into
0pcom wants to merge 1 commit into
Conversation
Two source-compatibility fills, surfaced compiling larger Go programs under TinyGo: - runtime.Func.Entry: stubbed like the rest of runtime.Func; testify's mock package calls FileLine(f.Entry()). - runtime/pprof goroutine-label API (Labels, Label, ForLabels, WithLabels, SetGoroutineLabels, Do): inert stubs alongside the existing pprof stubs; google.golang.org/grpc references them. Do still calls f, labels are simply not attached.
0pcom
force-pushed
the
runtime-entry-pprof-stubs
branch
from
September 2, 2026 08:15
c2a7a18 to
b96d520
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two source-compatibility fills, surfaced compiling larger Go programs under TinyGo:
runtime.Func.Entry: stubbed like the rest ofruntime.Func; testify's mock package callsFileLine(f.Entry()).runtime/pprofgoroutine-label API (Labels,Label,ForLabels,WithLabels,SetGoroutineLabels,Do): inert stubs alongside the existing pprof stubs; google.golang.org/grpc references them.Dostill callsf— labels are simply not attached.Verified on linux/amd64: a program exercising all of the above builds and runs (
Entryreturns 0 like its siblings,Doinvokes its function,Labelreports absent).🤖 Generated with Claude Code
https://claude.ai/code/session_01C3X3gvq8ZggMRvzVzWm66i