debugGetRequestedPerformanceMode method

DartPerformanceMode? debugGetRequestedPerformanceMode()

Returns the current DartPerformanceMode requested or null if no requests have been made.

This is only supported in debug and profile modes, returns null in release mode.

Implementation

DartPerformanceMode? debugGetRequestedPerformanceMode() {
  if (!(kDebugMode || kProfileMode)) {
    return null;
  } else {
    return _performanceMode;
  }
}