debugPrintMarkNeedsPaintStacks

Similar to debugPrintMarkNeedsLayoutStacks,
    but for excess painting. You can use the debugPrintStack()
    method from the services library to print your own stack
    traces on demand, if this kind of approach is useful to you.

            
Tracing Dart code performance

            
               Note:
  You can use the DevTools Timeline events chart to perform traces.
  You can also import and export trace files into the Timeline view,
  but only files generated by DevTools.
            

            To perform custom performance traces programmatically and
measure wall/CPU time of arbitrary segments of Dart code
similar to what would be done on Android with systrace,
use dart:developer Timeline utilities to wrap the
code you want to measure such as:

            
import 'dart:developer';