kProfileMode top-level constant
A constant that is true if the application was compiled in profile mode.
More specifically, this is a constant that is true if the application was compiled in Dart with the '-Ddart.vm.profile=true' flag.
Since this is a const value, it can be used to indicate to the compiler that a particular block of code will not be executed in profile mode, an hence can be removed.
See also:
- kDebugMode, which is true in debug builds.
- kReleaseMode, which is true in release builds.
Implementation
const bool kProfileMode = bool.fromEnvironment('dart.vm.profile');