Made flag for debugging build time of user created widgets (#100926)
* Added a bool that allows us to limit debugProfileBuildsEnabled to user created widgets. * made it turned on by default * switched to hashmap * Cleaned everything up and added tests * fixed an odd test where it wants to be able to add asserts and run in profile mode * hixie feedback * hixie2 * made it default to false * updated docstring as per dans request
This commit is contained in:
@@ -222,7 +222,7 @@ class KernelSnapshot extends Target {
|
||||
),
|
||||
aot: buildMode.isPrecompiled,
|
||||
buildMode: buildMode,
|
||||
trackWidgetCreation: trackWidgetCreation && buildMode == BuildMode.debug,
|
||||
trackWidgetCreation: trackWidgetCreation && buildMode != BuildMode.release,
|
||||
targetModel: targetModel,
|
||||
outputFilePath: environment.buildDir.childFile('app.dill').path,
|
||||
packagesPath: packagesFile.path,
|
||||
|
||||
Reference in New Issue
Block a user