Files
tinygo/src/runtime/debug.go
T
Pat Whittingslow 4adc661197 upgrade net (#5490)
* upgrade net

* add some missing crypto and os API (#5488)

* add missing crypto API

* gofmt crypto/tls/common.go

* pull new net with unixsock formatted

* update net to latest main
2026-07-07 10:40:36 +02:00

28 lines
628 B
Go

package runtime
// Stub for NumCgoCall, does not return the real value
func NumCgoCall() int {
return 0
}
// Stub for NumGoroutine, does not return the real value
func NumGoroutine() int {
return 1
}
// Stub for Breakpoint, does not do anything.
func Breakpoint() {
panic("Breakpoint not supported")
}
// Stub for SetBlockProfileRate, does not do anything. TinyGo has no block
// profiler.
func SetBlockProfileRate(rate int) {
}
// Stub for SetMutexProfileFraction, does not do anything and always reports the
// previous rate as 0. TinyGo has no mutex profiler.
func SetMutexProfileFraction(rate int) int {
return 0
}