Skip to main content

edgepulse 0.2.2 copy "edgepulse: ^0.2.2" to clipboard
edgepulse: ^0.2.2 copied to clipboard

Flutter plugin for EdgePulse — captures real memory, thermal state, battery, and CPU on Android and iOS during on-device AI inference.

Changelog #

0.2.2 — 2026-10-06 #

Fixed #

  • Added top-level example/example.dart for pub.dev example detection and 160/160 Pana score compliance

0.2.1 — 2026-10-06 #

Changed #

  • Trimmed pubspec description to 139 characters (was 260) — meets Pana's 60-180 guidance
  • Added example/example.dart for pub.dev example detection

Notes #

  • Version bumped to trigger pub.dev score recomputation
  • Expected score after recomputation: 160/160

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 MB
    • captureThermal: PowerManager.currentThermalStatus (API 29+)
    • captureBattery: BatteryManager.CURRENT_NOW in milliamps
    • captureCpu: /proc/stat utilisation ratio
    • getDeviceInfo: Build.MODEL, MANUFACTURER, VERSION.RELEASE, SDK_INT
  • iOS Swift native plugin (EdgePulsePlugin.swift):
    • captureMemory: mach_task_basic_info resident_size
    • captureThermal: ProcessInfo.thermalState (iOS 11+)
    • captureBattery: UIDevice.batteryLevel (level fraction 0.0–1.0)
    • captureCpu: host_statistics HOST_CPU_LOAD_INFO
    • getDeviceInfo: UIDevice model and systemVersion
  • edgepulse.dart re-exports all of edgepulse_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.
0
likes
160
points
452
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for EdgePulse — captures real memory, thermal state, battery, and CPU on Android and iOS during on-device AI inference.

Repository (GitHub)
View/report issues
Contributing

Topics

#flutter #plugin #observability #performance #profiling

License

MIT (license)

Dependencies

edgepulse_core, flutter

More

Packages that depend on edgepulse

Packages that implement edgepulse