Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Timeline.dart used for in dart?

Tags:

flutter

dart

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.

like image 784
weechan Avatar asked Sep 01 '25 23:09

weechan


1 Answers

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

like image 153
Thepeanut Avatar answered Sep 03 '25 15:09

Thepeanut