forked from retoor/snek
- Import and register stats_middleware in the application middleware stack - Add prepare_stats startup hook to initialize stats data structure - Register /stats.html GET route with stats_handler for viewing statistics - Create new snek/system/stats.py module with time-series data collection and SVG chart generation - Integrate websocket statistics tracking in RPC view by calling update_websocket_stats before and after method execution