Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
0177d429
Unverified
Commit
0177d429
authored
May 11, 2020
by
Dan Field
Committed by
GitHub
May 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more docs about diagnostics in release mode (#56906)
parent
456d80b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
diagnostics.dart
packages/flutter/lib/src/foundation/diagnostics.dart
+16
-0
No files found.
packages/flutter/lib/src/foundation/diagnostics.dart
View file @
0177d429
...
...
@@ -22,6 +22,9 @@ import 'object.dart';
/// Trees of Flutter diagnostics can be very large so filtering the diagnostics
/// shown matters. Typically filtering to only show diagnostics with at least
/// 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
{
/// Diagnostics that should not be shown.
///
...
...
@@ -84,8 +87,12 @@ enum DiagnosticLevel {
/// filter which diagnostics are shown.
off
,
}
/// 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:
///
/// * [DiagnosticsNode.toStringDeep], which dumps text art trees for these
...
...
@@ -180,6 +187,9 @@ enum DiagnosticsTreeStyle {
/// Configuration specifying how a particular [DiagnosticsTreeStyle] should be
/// 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:
///
/// * [sparseTextConfiguration], which is a typical style.
...
...
@@ -1633,6 +1643,9 @@ abstract class DiagnosticsNode {
///
/// `minLevel` specifies the minimum [DiagnosticLevel] for properties included
/// in the output.
///
/// In release mode, far less information is retained and some information may
/// not print at all.
@override
String
toString
({
TextTreeConfiguration
parentConfiguration
,
...
...
@@ -1711,6 +1724,9 @@ abstract class DiagnosticsNode {
/// The [toStringDeep] method takes other arguments, but those are intended
/// 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:
///
/// * [toString], for a brief description of the [value] but not its
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment