execution_metrics 2.0.0 copy "execution_metrics: ^2.0.0" to clipboard
execution_metrics: ^2.0.0 copied to clipboard

A Flutter plugin for obtaining function execution metrics in a Flutter / Dart app.

example/main.dart

import 'package:execution_metrics/execution_metrics.dart';

void main() async {
  // Example using runAsync helper with named parameters
  final result = await ExecutionMetrics.runAsync(
    taskName: 'Async Task Example',
    action: () async {
      await Future.delayed(const Duration(seconds: 2));
      return 'Task Completed';
    },
    callback: (result) {
      print('Callback: Task ${result.taskName} finished in ${result.seconds}s');
    },
  );

  print('Result: $result');

  // Example using run helper with named parameters
  ExecutionMetrics.run(
    taskName: 'Sync Task Example',
    action: () {
      print('Running sync task...');
    },
  );
}
2
likes
150
points
157
downloads

Publisher

verified publishersmart-dev.com.co

Weekly Downloads

A Flutter plugin for obtaining function execution metrics in a Flutter / Dart app.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on execution_metrics