Repository: flutter
Issue: PerformanceOverlay shows wrong frame rate
Labels: engine,c: performance,perf: speed,P2,team-engine,triaged-engine

#### Disclaimer

***I do not experience the issue myself***
I'm opening this issue based on the reporting in the issue below 
- https://github.com/flutter/flutter/issues/115036

while the issue above has it's focus on flutter performances
this issue targets the (very significant) discrepancies between PerformanceOverlay and real world / other tools

#

### Description

[Performance overlay](https://api.flutter.dev/flutter/material/MaterialApp/showPerformanceOverlay.html) shows wrong frame rate in certain condition,
this may or may not be a device specific issue (see this [issue](https://github.com/flutter/flutter/issues/115036))
either way there should be some test to ensure that the reported frame rate is at the very least close to reality

### Step to reproduce

- add to this [sample app](https://github.com/flutter/flutter/issues/115036#issue-1442955963) performance overlay 
<details>
  <summary>example</summary>
  
```diff
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    const padding = EdgeInsets.symmetric(vertical: 10, horizontal: 10);
    return MaterialApp(
+     showPerformanceOverlay: true,
      home: Scaffold(
        body: ListView(
          children: <Widget>[
            Container(
              margin: padding,
              height: 200,
              color: Colors.grey,
            ),
            Container(
              margin: padding,
              height: 200,
              color: Colors.orange,
            ),
            Container(
              margin: padding,
              height: 200,
              color: Colors.grey,
            ),
            Container(
              margin: padding,
              height: 200,
              color: Colors.orange,
            ),
            Container(
              margin: padding,
              height: 200,
              color: Colors.grey,
            ),
            Container(
              margin: padding,
              height: 200,
              color: Colors.orange,
            ),
            Container(
              margin: padding,
              height: 200,
              color: Colors.grey,
            ),
            Container(
              margin: padding,
              height: 200,
              color: Colors.orange,
            ),
          ],
        ),
      ),
    );
  }
}

```

</details>

- run the app on the affected devices, running  **iOS 16.1** (not 16.1.1 ), in **landscape mode**:
   - iPhone X 
   - iPhone XS
   - iPhone XR

- compare the result from performance overlay against other tools [example](https://github.com/flutter/flutter/issues/115036#issuecomment-1313413370)

### Expected results

performance overlay data and other tools' data are a close match

### Actual results

- performance overlay shows [very good results](https://github.com/flutter/flutter/issues/115036#issuecomment-1310179806)

- reality shows [very bad results](https://user-images.githubusercontent.com/29434837/200965829-5a6c6168-7adb-45f3-a415-9dec89e41de7.mp4) ([source](https://github.com/flutter/flutter/issues/115036#issue-1442955963))

- tools show [very bad results](https://github.com/flutter/flutter/issues/115036#issuecomment-1313413370)

### Details

tested (not by me) with the [latest stable](https://github.com/flutter/flutter/issues/115036#issuecomment-1313413370)
cc @huycozy @KevinHaendel

possibly related to 
- https://github.com/flutter/flutter-intellij/issues/4815
- https://github.com/flutter/devtools/pull/1999
- https://github.com/flutter/flutter/issues/52357
- https://github.com/flutter/flutter/issues/51401#issuecomment-700235881