DevTools 2.21.1 release notes

The 2.21.1 release of the Dart and Flutter DevTools includes the following changes among other general improvements. To learn more about DevTools, check out the DevTools overview.

Performance updates

#
  • Replace the DevTools timeline trace viewer with the Perfetto trace viewer - #5142

    perfetto trace viewer

  • Fix several issues with loading a Performance snapshot into DevTools - #5048, #4929

  • UI polish and cleanup - #4889

Memory updates

#
  • Improve usability of snapshot diffing - #5015
  • UI polish and cleanup - #4855
  • Color code classes based on where they are defined (SDK, your package, dependencies, etc.) - #5030
  • Fix state management issue for tracing - #5062
  • Improve the performance of taking a heap snapshot - #5134
  • Retire broken import/export feature - #5135

Debugger updates

#
  • Added support for viewing profiler hits in the debugger script viewer - #4831
  • Added support for inspecting records - #5084

General updates

#
  • Fix several issues in syntax highlighting that would color variable names that contain reserved words incorrectly and leave extends/implements clauses uncolored for some classes - #4948
  • Fix an issue in Safari, and other browsers that do not support RegExp negative lookbehind, that prevented DevTools from loading - #4938
  • Fix an issue that would prevent DevTools connecting to the backend server that would disable some functionality - #5016
  • Add a link to the DevTools contribution guide to the About menu, and fixed the Discord link - #4926
  • Fix conflicting colors in light theme - #5067

Full commit history

#

To find a complete list of changes since the previous release, check out the diff on GitHub.