• liyuqian's avatar
    Allow profile widget builds in profile mode (#30990) · a8116e9e
    liyuqian authored
    ## Description
    
    Previously, such function is only available in the debug mode. But the
    performance information is very noisy in debug mode with JIT. I feel
    that such function is as important and useful as the performance overlay
    and the `--trace-skia` option for the GPU thread.  So we should give it
    the same ability to run in both profile and debug mode.
    
    I've tested it using flutter_gallery in the profile mode. There's no
    observable difference in the performance overlay between toggling widget
    build profiling.
    
    ## Related Issues
    
    https://github.com/flutter/flutter/issues/30984
    a8116e9e
binding.dart 34.7 KB