I've made some snippet involving parsing a html and wants to know if the code runs slow or not, is this doable?
You can use Stopwatch to measure execution time :
Stopwatch stopwatch = new Stopwatch()..start();
doSomething();
print('doSomething() executed in ${stopwatch.elapsed}');
Dart 2:
new
final stopwatch = Stopwatch()..start();
doSomething();
print('doSomething() executed in ${stopwatch.elapsed}');