edgepulse 0.2.0
edgepulse: ^0.2.0 copied to clipboard
Flutter plugin for EdgePulse — runtime observability for on-device AI. Captures real memory (RSS), thermal state, battery draw, and CPU usage on Android and iOS via native platform channels. Pairs wit [...]
Changelog #
0.2.0 — 2026-10-06 #
Added #
PlatformMetricCollector— reads real device metrics via Flutter MethodChannel- Android Kotlin native plugin (
EdgePulsePlugin.kt):captureMemory: Debug.getPss() for accurate process memory in MBcaptureThermal: PowerManager.currentThermalStatus (API 29+)captureBattery: BatteryManager.CURRENT_NOW in milliampscaptureCpu: /proc/stat utilisation ratiogetDeviceInfo: Build.MODEL, MANUFACTURER, VERSION.RELEASE, SDK_INT
- iOS Swift native plugin (
EdgePulsePlugin.swift):captureMemory: mach_task_basic_info resident_sizecaptureThermal: ProcessInfo.thermalState (iOS 11+)captureBattery: UIDevice.batteryLevel (level fraction 0.0–1.0)captureCpu: host_statistics HOST_CPU_LOAD_INFOgetDeviceInfo: UIDevice model and systemVersion
edgepulse.dartre-exports all ofedgepulse_core+PlatformMetricCollector- Example Flutter app demonstrating 5-run trace on a real device
Notes #
- iOS battery returns level fraction (0.0–1.0), not milliamps. See docs/ios-battery-note.md for handling both platforms.
- Minimum Android API: 21. Thermal state requires API 29.
- Minimum iOS: 12.0. Swift 5.0.