Documentation
¶
Index ¶
- func ConfigureDebugNamespace(parseNamespace string, isEnabled bool)
- func ConfigureDebugNamespaces(parseNamespaces map[string]bool)
- func ConfigureDebugNamespacesExclusive(parseNamespaces map[string]bool)
- func ConfigureGoroutineThreshold(parseThreshold int)
- func ConfigureMemStatsSampleRate(parseRate int64)
- func DisableAllDebug()
- func DisableDebug()
- func DisableGoroutineMonitoring()
- func EnableAllDebug()
- func EnableDebug()
- func EnableGoroutineMonitoring()
- func EnableHotReload(isEnabled bool)deprecated
- func GetDebugStatus() map[string]bool
- func GetGoroutineStats() map[string]int64
- func GetMemStatsSampleRate() int64
- func InstallHotReloadBridge(parseAtomIDs ...string)deprecated
- func IsHotReloadEnabled() booldeprecated
- func ResetGoroutineBaseline()
- func ResolveDocumentURL(parseRelative string) string
- func WaitForever()
- func WriteConsole(format string, parseArgs ...interface{})
- func WriteConsoleStructured(parseLevel, parseScope, parseMessage string, ...)
- type FastComparable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureDebugNamespace ¶
ConfigureDebugNamespace enables or disables debug logs for a specific namespace.
func ConfigureDebugNamespaces ¶
ConfigureDebugNamespaces enables multiple namespaces at once.
func ConfigureDebugNamespacesExclusive ¶
ConfigureDebugNamespacesExclusive disables global debug and only enables specified namespaces.
func ConfigureGoroutineThreshold ¶
func ConfigureGoroutineThreshold(parseThreshold int)
ConfigureGoroutineThreshold configures the threshold for goroutine leak detection.
func ConfigureMemStatsSampleRate ¶
func ConfigureMemStatsSampleRate(parseRate int64)
ConfigureMemStatsSampleRate configures how often memory stats are collected. Higher values = less frequent collection = better performance. Lower values = more frequent collection = more detailed monitoring.
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
deprecated
func EnableHotReload(isEnabled bool)
EnableHotReload enables or disables hot reload.
Deprecated: use hotreload.Enable / hotreload.Disable directly.
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 InstallHotReloadBridge
deprecated
func InstallHotReloadBridge(parseAtomIDs ...string)
InstallHotReloadBridge configures the hot reload bridge with the given atom IDs.
Deprecated: use hotreload.Configure directly.
func IsHotReloadEnabled
deprecated
func IsHotReloadEnabled() bool
IsHotReloadEnabled reports whether hot reload is enabled.
Deprecated: use hotreload.Enabled.
func ResetGoroutineBaseline ¶
func ResetGoroutineBaseline()
ResetGoroutineBaseline resets the baseline goroutine count to current count This is useful after major application state changes
func ResolveDocumentURL ¶
ResolveDocumentURL resolves a relative asset path against the current document URL.
func WaitForever ¶
func WaitForever()
WaitForever blocks indefinitely so js/wasm programs stay alive for events. It delegates to interop.KeepAlive, the shared keep-alive primitive also used by ui.Run.
func WriteConsole ¶
func WriteConsole(format string, parseArgs ...interface{})
WriteConsole wraps the browser console for easier debugging.
func WriteConsoleStructured ¶
func WriteConsoleStructured(parseLevel, parseScope, parseMessage string, parseFields map[string]interface{})
WriteConsoleStructured writes a structured entry to the browser console when available.
Types ¶
type FastComparable ¶
type FastComparable interface {
FastEqual(other interface{}) bool
}
FastComparable is an interface for types that can provide fast equality comparison