Repository: flutter
Issue: Flutter runtime memory usage on linux, 96MB for default application
Labels: engine,platform-linux,a: desktop,a: build,perf: memory,P3,team-linux,triaged-linux

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a performance problem, then fill out the template below.
     Please read our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Details

* I find memory usage of Flutter app on Linux desktop to be on higher side. Any way to reduce this further ?
* Is this beacuse of GTK dependency ?

```bash
flutter create box
flutter build linux --release --analyze-size
# reported bundle size is about 18MB
cd build/linux/x64/release/bundle
./box

# measure memory with procrank tool
# reported memory is about 99132K (96MB)
# see screenshot below
```

<!--

2.  Please attach a small application (ideally just one main.dart file) that
     reproduces the problem. You could use https://gist.github.com/ for this.

3.  Switch flutter to master channel and run this app on a physical device
     using profile or release mode. Verify that the performance issue can be
     reproduced there.

     The bleeding edge master channel is encouraged here because Flutter is
     constantly fixing bugs and improving its performance. Your problem in an
     older Flutter version may have already been solved in the master channel.
-->

<!--
     Please tell us which target platform(s) the problem occurs (Android / iOS / Web / macOS / Linux / Windows)
     Which target OS version, for Web, browser, is the test system running?
     Does the problem occur on an emulator/simulator as well as on physical devices?
-->

**Target Platform:**
Linux

**Target OS version/browser:**
**Devices:**
Linux

![Imgur Image](https://imgur.com/afGFl0K.jpeg)

## Logs

<details>
<summary>Logs</summary>
<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->
<!-- Finally, paste the output of running `flutter doctor -v` here, with your device plugged in. -->


```console
[✓] Flutter (Channel dev, 2.6.0-11.0.pre, on Ubuntu 21.10 5.13.0-20-generic, locale en_IN)
    • Flutter version 2.6.0-11.0.pre at /home/skamath/.local/share/umake/dart/flutter-sdk
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4b330ddbed (5 weeks ago), 2021-09-16 17:29:58 -0700
    • Engine revision 5b81c6d615
    • Dart version 2.15.0 (build 2.15.0-116.0.dev)

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 13.0.0-2
    • cmake version 3.18.4
    • ninja version 1.8.2
    • pkg-config version 0.29.2

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-x64 • Ubuntu 21.10 5.13.0-20-generic

! Doctor found issues in 3 categories.
```
</details>