TRACKER
Global development tracker instance for monitoring application behavior.
This tracker records page entries, view model creations, recompositions, and custom events. It provides automatic function detection and event tracking capabilities without affecting production code.
Features:
Automatic function name detection from call stack
Thread-safe event recording with atomic counters
Optional file-based persistence of tracking data
Auto-save capability for continuous data collection
Integration with the main LOGGER for event logging
Usage:
// Track a page entry (automatically detects function name)
trackPageEnter()
// Track view model creation
trackViewModelCreated(viewModel)
// Track recomposition
trackRecomposition()
// Print summary of all tracked data
printTrackingSummary()
// Save to file with auto-save enabled
TRACKER.setTrackerFilePath(autoSave = true)
TRACKER.saveToFile()Content copied to clipboard