Documentation
¶
Index ¶
- func ConsoleLog(format string, args ...interface{})
- func DisableAllDebug()
- func DisableGoroutineMonitoring()
- func EnableAllDebug()
- func EnableGoroutineMonitoring()
- func EnableHotReload(enabled bool)
- func GetDebugStatus() map[string]bool
- func GetGoroutineStats() map[string]int64
- func GetMemStatsSampleRate() int64
- func IsHotReloadEnabled() bool
- func ResetGoroutineBaseline()
- func SetDebug(enabled bool)
- func SetDebugNamespace(namespace string, enabled bool)
- func SetDebugNamespaces(namespaces map[string]bool)
- func SetDebugNamespacesExclusive(namespaces map[string]bool)
- func SetGoroutineThreshold(threshold int)
- func SetMemStatsSampleRate(rate int64)
- type FastComparable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsoleLog ¶
func ConsoleLog(format string, args ...interface{})
ConsoleLog wraps js.Global().Get("console").Call("log", ...) for easier debugging
func DisableGoroutineMonitoring ¶
func DisableGoroutineMonitoring()
DisableGoroutineMonitoring stops goroutine leak monitoring
func EnableGoroutineMonitoring ¶
func EnableGoroutineMonitoring()
EnableGoroutineMonitoring starts monitoring for potential goroutine leaks This helps detect and prevent goroutine accumulation in long-running applications
func EnableHotReload ¶
func EnableHotReload(enabled bool)
EnableHotReload enables or disables hot reload functionality When enabled, the application will preserve state during WASM reloads
func GetDebugStatus ¶
GetDebugStatus returns current debug settings
func GetGoroutineStats ¶
GetGoroutineStats returns current goroutine statistics
func GetMemStatsSampleRate ¶
func GetMemStatsSampleRate() int64
GetMemStatsSampleRate returns the current memory stats sample rate
func IsHotReloadEnabled ¶
func IsHotReloadEnabled() bool
IsHotReloadEnabled returns whether hot reload is currently enabled
func ResetGoroutineBaseline ¶
func ResetGoroutineBaseline()
ResetGoroutineBaseline resets the baseline goroutine count to current count This is useful after major application state changes
func SetDebug ¶
func SetDebug(enabled bool)
SetDebug enables or disables verbose debug logs at runtime
func SetDebugNamespace ¶
SetDebugNamespace enables or disables debug logs for a specific namespace
func SetDebugNamespaces ¶
SetDebugNamespaces enables multiple namespaces at once
func SetDebugNamespacesExclusive ¶
SetDebugNamespacesExclusive disables global debug and only enables specified namespaces
func SetGoroutineThreshold ¶
func SetGoroutineThreshold(threshold int)
SetGoroutineThreshold configures the threshold for goroutine leak detection
func SetMemStatsSampleRate ¶
func SetMemStatsSampleRate(rate int64)
SetMemStatsSampleRate configures how often memory stats are collected Higher values = less frequent collection = better performance Lower values = more frequent collection = more detailed monitoring
Types ¶
type FastComparable ¶
type FastComparable interface {
FastEqual(other interface{}) bool
}
FastComparable is an interface for types that can provide fast equality comparison