Skip to main content

edgepulse_core 0.1.0 copy "edgepulse_core: ^0.1.0" to clipboard
edgepulse_core: ^0.1.0 copied to clipboard

Pure Dart core for EdgePulse — data models, metric collectors, exporters, and PulseRunner.

example/edgepulse_core_example.dart

// ignore_for_file: avoid_print
import 'package:edgepulse_core/edgepulse_core.dart';

Future<void> main() async {
  final pulse = EdgePulse.mock();

  await pulse.initialize();

  final traces = await pulse.traceMany(
    modelId: 'example-model',
    modelFormat: 'mock',
    runs: 3,
    run: () async {
      await Future<void>.delayed(const Duration(milliseconds: 50));
    },
  );

  print('Captured ${traces.length} traces');
  print(pulse.exportJson(traces));

  await pulse.dispose();
}
0
likes
140
points
418
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Pure Dart core for EdgePulse — data models, metric collectors, exporters, and PulseRunner.

Topics

#observability #performance #profiling #edge-computing #ai

License

unknown (license)

Dependencies

meta

More

Packages that depend on edgepulse_core