I have a Flutter app that I've added to an existing Android app. I'm trying to profile this app, but my issue is that I can't seem to maintain profile mode and also use Flutter Attach to actually view the Flutter DevTools window. My process is as follows -- select 'Profile app' from Android Studio. App starts in profiling mode. Then I close the app, start Flutter Attach from Android Studio, and re-open the app so Flutter Attach connects. However at this point it says 'Syncing files to [Device name]...' and when that's done, I can open the DevTools but it's back in debug mode. The same happens if I start up Flutter Attach waiting for a connection and then start the profiling mode, it seems to be the process of attaching and syncing files that puts it into debug mode. But I could be missing something. (The fact that I have to restart the app in order for Flutter Attach to see it is also weird, and possibly related I guess)
How can I use performance profiling with a Flutter add-to-app app using Flutter Attach?
828 Views Asked by mosh.jinton At
1
There are 1 best solutions below
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in FLUTTER
- Bug report: Issue building flutter on a mac
- Is there a way to control where a Text widget overflow occurs (how many lines)?
- How to save to local storage using Flutter?
- How do you use a TextPainter to draw text?
- Passing command line arguments to a flutter app
- IconButton calling setState during onPressed shows no ripple effect
- What would be a good way for a widget to take 1/3 of the screen?
- How can I test a TextPainter?
- How can I inherit a StatefulWidget's State?
- Life cycle in flutter
- Preloading local image assets in Flutter
- Flutter app not able to run in IntelliJ
- Is there a way to call specific code right before the app is killed or moves to the background?
- How can I layout widgets based on the size of the parent?
- Multi-line TextField in Flutter
Related Questions in ANDROID-STUDIO
- how do i submit a pastebin or pastee from an android app and get the url back
- Getresource id Error
- Call special fragment in Navigation Drawer Activity from separate Activity
- Debug native code in Android Studio
- How to introduce in this AlertDialog a onBackButtonPressed method?
- Android Studio : All of a sudden cannot resolve symbol 'ActionBarActivity'
- Error connecting to Google Play Games
- Android Studio - Illegal character 8204 error
- Android Studio unable to run the project
- How do I know what is available in minSdkVersion in Android Studio?
- Android Studio update (version 1.2.1.1) - Cannot resolve symbol 'TintCheckBox'
- How to accept cookies when using a webservice - Android?
- How can I always show Android Studios Preview?
- Android Studio cannot recognize "setAdapter()" method
- Error inflating class Android support design
Related Questions in PROFILING
- How to profile a Yii2 based API?
- "Capture GPU Frame" in XCode -- iOS only?
- How does one debug infinite recursion in Haskell?
- What is the procedure for profiling under GHC 7.10.1 and cabal 1.23?
- Visual Studio 2013 unable to create diagnostic report
- Xdebug profiling shows different execution time than actual one
- Application is faster when profiling
- Why is this script slowing down per item with increased amount of input?
- ASP.NET MVC application profiling
- Memory leak due to Window.EfectiveValues retention
- Can't get golang pprof working
- What is difference between "node --prof" and using node-profiler
- Improve performance on processing a big pandas dataframe
- Visualvm thread started count
- optimize arithmetic operations with stl vector
Related Questions in FLUTTER-ADD-TO-APP
- While adding flutter to an existing android app, How could I use a different base URL in flutter_module based on `stage`, `prod` android flavor?
- Dart Unhandled Exception: NoSuchMethodError: No top-level getter 'xx' declared.Could not run the run main Dart entrypoint
- How to use a flutter module in a flutter app?
- Problem with "add to app": Could not launch engine with configuration
- Requested flutter engine does not exist in Add to app
- How to handle asynchronous error in 'Add to App' Flutter android application
- How to handle back button on appBar of Scaffold layout in flutter module and navigate to previous page on the host app
- Flutter: How do I reset navigation stack on a Flutter engine?
- Why webview_flutter not working in case of add to app (iOS)?
- How can I use performance profiling with a Flutter add-to-app app using Flutter Attach?
- How can we add Firebase Crashlytics in flutter where the flutter app is itself added to existing iOS and Android app?
- Wrap Flutter module in library to use it by other apps
- how to implement a flutter aar in android native application
- Module not found issue with package installed in flutter module (add-to-app)
- how to add Deep Link and Universal Link Support in Flutter?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Mostly solved -- simply using
flutter attach --profilein the command line will keep the app in profile mode and allow you to open Dev Tools in the browser. However, I'm still unsure if it is possible to use the--profileoption in when starting Flutter Attach from Android Studio, which would allow Android Studio's performance windows to be used, which seem better than the browser ones.