mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 10:37:46 +00:00
runtime/debug: add GC related stubs
This commit is contained in:
committed by
Ron Evans
parent
7c54dbc61f
commit
f19b288717
@@ -0,0 +1,37 @@
|
||||
// Package debug is a very partially implemented package to allow compilation.
|
||||
package debug
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type GCStats struct {
|
||||
LastGC time.Time
|
||||
NumGC int64
|
||||
PauseTotal time.Duration
|
||||
Pause []time.Duration
|
||||
PauseEnd []time.Time
|
||||
PauseQuantiles []time.Duration
|
||||
}
|
||||
|
||||
func ReadGCStats(stats *GCStats) {
|
||||
}
|
||||
|
||||
func FreeOSMemory() {
|
||||
}
|
||||
|
||||
func SetMaxThreads(threads int) int {
|
||||
return threads
|
||||
}
|
||||
|
||||
func SetPanicOnFault(enabled bool) bool {
|
||||
return enabled
|
||||
}
|
||||
|
||||
func WriteHeapDump(fd uintptr)
|
||||
|
||||
func SetTraceback(level string)
|
||||
|
||||
func SetMemoryLimit(limit int64) int64 {
|
||||
return limit
|
||||
}
|
||||
Reference in New Issue
Block a user