Get current system statistics
(self)
| 252 | pass |
| 253 | |
| 254 | def get_system_stats(self): |
| 255 | """Get current system statistics""" |
| 256 | try: |
| 257 | self.system_stats['cpu_percent'] = psutil.cpu_percent(interval=0.1) |
| 258 | self.system_stats['memory_percent'] = psutil.virtual_memory().percent |
| 259 | net_io = psutil.net_io_counters() |
| 260 | self.system_stats['network_io'] = (net_io.bytes_sent, net_io.bytes_recv) |
| 261 | except: |
| 262 | pass |
| 263 | |
| 264 | def create_http_session(self): |
| 265 | """Create optimized HTTP session with connection pooling""" |