Unverified Commit 0177d429 authored by Dan Field's avatar Dan Field Committed by GitHub

more docs about diagnostics in release mode (#56906)

parent 456d80b9
...@@ -22,6 +22,9 @@ import 'object.dart'; ...@@ -22,6 +22,9 @@ import 'object.dart';
/// Trees of Flutter diagnostics can be very large so filtering the diagnostics /// Trees of Flutter diagnostics can be very large so filtering the diagnostics
/// shown matters. Typically filtering to only show diagnostics with at least /// shown matters. Typically filtering to only show diagnostics with at least
/// level [debug] is appropriate. /// level [debug] is appropriate.
///
/// In release mode, this level may not have any effect, as diagnostics in
/// release mode are compacted or truncated to reduce binary size.
enum DiagnosticLevel { enum DiagnosticLevel {
/// Diagnostics that should not be shown. /// Diagnostics that should not be shown.
/// ///
...@@ -84,8 +87,12 @@ enum DiagnosticLevel { ...@@ -84,8 +87,12 @@ enum DiagnosticLevel {
/// filter which diagnostics are shown. /// filter which diagnostics are shown.
off, off,
} }
/// Styles for displaying a node in a [DiagnosticsNode] tree. /// Styles for displaying a node in a [DiagnosticsNode] tree.
/// ///
/// In release mode, these styles may be ignored, as diagnostics are compacted
/// or truncated to save on binary size.
///
/// See also: /// See also:
/// ///
/// * [DiagnosticsNode.toStringDeep], which dumps text art trees for these /// * [DiagnosticsNode.toStringDeep], which dumps text art trees for these
...@@ -180,6 +187,9 @@ enum DiagnosticsTreeStyle { ...@@ -180,6 +187,9 @@ enum DiagnosticsTreeStyle {
/// Configuration specifying how a particular [DiagnosticsTreeStyle] should be /// Configuration specifying how a particular [DiagnosticsTreeStyle] should be
/// rendered as text art. /// rendered as text art.
/// ///
/// In release mode, these configurations may be ignored, as diagnostics are
/// compacted or truncated to save on binary size.
///
/// See also: /// See also:
/// ///
/// * [sparseTextConfiguration], which is a typical style. /// * [sparseTextConfiguration], which is a typical style.
...@@ -1633,6 +1643,9 @@ abstract class DiagnosticsNode { ...@@ -1633,6 +1643,9 @@ abstract class DiagnosticsNode {
/// ///
/// `minLevel` specifies the minimum [DiagnosticLevel] for properties included /// `minLevel` specifies the minimum [DiagnosticLevel] for properties included
/// in the output. /// in the output.
///
/// In release mode, far less information is retained and some information may
/// not print at all.
@override @override
String toString({ String toString({
TextTreeConfiguration parentConfiguration, TextTreeConfiguration parentConfiguration,
...@@ -1711,6 +1724,9 @@ abstract class DiagnosticsNode { ...@@ -1711,6 +1724,9 @@ abstract class DiagnosticsNode {
/// The [toStringDeep] method takes other arguments, but those are intended /// The [toStringDeep] method takes other arguments, but those are intended
/// for internal use when recursing to the descendants, and so can be ignored. /// for internal use when recursing to the descendants, and so can be ignored.
/// ///
/// In release mode, far less information is retained and some information may
/// not print at all.
///
/// See also: /// See also:
/// ///
/// * [toString], for a brief description of the [value] but not its /// * [toString], for a brief description of the [value] but not its
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment