debugProfileBuildsEnabledUserWidgets top-level property
getter/setter pair
Adds Timeline events for every user-created Widget built.
A user-created Widget is any Widget that is constructed in the root library. Often Widgets contain child Widgets that are constructed in libraries (for example, a TextButton having a RichText child). Timeline events for those children will be omitted with this flag. This works for any Widget not just ones declared in the root library.
See also:
- debugProfileBuildsEnabled, which functions similarly but shows events for every widget and has a higher overhead cost.
- debugEnhanceBuildTimelineArguments, which enhances the trace with debugging information related to Widget builds.
Implementation
bool debugProfileBuildsEnabledUserWidgets = false;