When I reading the code of flutter. I find some code in framework.dart like
Timeline.startSync('Build', arguments: timelineWhitelistArguments);
Timeline.finishSync();
I found the document in this website
https://api.flutter.dev/flutter/dart-developer/Timeline-class.html
But I still don't understand what is the purpose of this class.
It's used to check the app performance on a timeline in Flutter DevTools.
You can read more about it here: Tracing Any Dart Code Performance
EDITED Also found a good article about profiling Flutter apps using timelines at medium. Medium Article
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With