How to profile Android application without USB connection to device?











up vote
0
down vote

favorite












I want to profile an Android application on a physical Android device without using a USB connection from the device to my computer. The device's USB port is being used by a peripheral that is essential to my application.



I'm using the Android Wifi ADB Android Studio plugin and have successfully connected the device to utilise the bridge to Android Studio 3.2.1



When I attempt to begin a new profiling session using the Android Profiler my connected device appears to have "no debuggable processes."



How can I profile my application without a USB connection to my Android device?










share|improve this question




























    up vote
    0
    down vote

    favorite












    I want to profile an Android application on a physical Android device without using a USB connection from the device to my computer. The device's USB port is being used by a peripheral that is essential to my application.



    I'm using the Android Wifi ADB Android Studio plugin and have successfully connected the device to utilise the bridge to Android Studio 3.2.1



    When I attempt to begin a new profiling session using the Android Profiler my connected device appears to have "no debuggable processes."



    How can I profile my application without a USB connection to my Android device?










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I want to profile an Android application on a physical Android device without using a USB connection from the device to my computer. The device's USB port is being used by a peripheral that is essential to my application.



      I'm using the Android Wifi ADB Android Studio plugin and have successfully connected the device to utilise the bridge to Android Studio 3.2.1



      When I attempt to begin a new profiling session using the Android Profiler my connected device appears to have "no debuggable processes."



      How can I profile my application without a USB connection to my Android device?










      share|improve this question















      I want to profile an Android application on a physical Android device without using a USB connection from the device to my computer. The device's USB port is being used by a peripheral that is essential to my application.



      I'm using the Android Wifi ADB Android Studio plugin and have successfully connected the device to utilise the bridge to Android Studio 3.2.1



      When I attempt to begin a new profiling session using the Android Profiler my connected device appears to have "no debuggable processes."



      How can I profile my application without a USB connection to my Android device?







      android performance android-studio performance-testing






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 9 at 19:15

























      asked Nov 9 at 14:37









      esarkis

      838




      838
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          You need to enable adb integration,
          Go to Tools-->Android-->Check Enable ADB Integration



          It was a default feature a few versions ago but now it has been disabled by default.






          share|improve this answer























          • Great to hear! I've searched Tools but can't find Android and I can't find Enable ADB Integration searching with the Find Action tool. I'm on Android Studio 3.2.1
            – esarkis
            Nov 9 at 14:55










          • i.imgur.com/V4PKndj.png see here
            – omair issa
            Nov 9 at 15:10










          • i.imgur.com/3O5ofeX.png on Android Studio 3.2.1 I don't have the option. stackoverflow.com/a/49625983/7015599 suggests it was removed from Android Studio 3.2
            – esarkis
            Nov 9 at 15:25












          • Preferences > Build, Execution & Deployment > Debugger Then check or uncheck the box Use libusb backendhttps://stackoverflow.com/questions/47904505/android-studio-3-1-does-not-showing-android-option-under-tools-menu
            – omair issa
            Nov 9 at 20:48












          • Thank you but I've attempted that fix already and still no success. This is a lot of comments so I've created another post: stackoverflow.com/q/53229325/7015599
            – esarkis
            Nov 9 at 20:56


















          up vote
          0
          down vote



          accepted










          I've found a solution thanks to Unity's list of Android profilers.



          At this time on Android Studio version 3.2.1 ADB and the Android Profiler do not work together over WiFi.



          For my case I've found simpleperf to be acceptable, a tool which includes functionality to generate CPU flame graphs. I used run_simpleperf_without_usb_connection.py specifically, as documented in the simpleperf README available here.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53227785%2fhow-to-profile-android-application-without-usb-connection-to-device%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            You need to enable adb integration,
            Go to Tools-->Android-->Check Enable ADB Integration



            It was a default feature a few versions ago but now it has been disabled by default.






            share|improve this answer























            • Great to hear! I've searched Tools but can't find Android and I can't find Enable ADB Integration searching with the Find Action tool. I'm on Android Studio 3.2.1
              – esarkis
              Nov 9 at 14:55










            • i.imgur.com/V4PKndj.png see here
              – omair issa
              Nov 9 at 15:10










            • i.imgur.com/3O5ofeX.png on Android Studio 3.2.1 I don't have the option. stackoverflow.com/a/49625983/7015599 suggests it was removed from Android Studio 3.2
              – esarkis
              Nov 9 at 15:25












            • Preferences > Build, Execution & Deployment > Debugger Then check or uncheck the box Use libusb backendhttps://stackoverflow.com/questions/47904505/android-studio-3-1-does-not-showing-android-option-under-tools-menu
              – omair issa
              Nov 9 at 20:48












            • Thank you but I've attempted that fix already and still no success. This is a lot of comments so I've created another post: stackoverflow.com/q/53229325/7015599
              – esarkis
              Nov 9 at 20:56















            up vote
            0
            down vote













            You need to enable adb integration,
            Go to Tools-->Android-->Check Enable ADB Integration



            It was a default feature a few versions ago but now it has been disabled by default.






            share|improve this answer























            • Great to hear! I've searched Tools but can't find Android and I can't find Enable ADB Integration searching with the Find Action tool. I'm on Android Studio 3.2.1
              – esarkis
              Nov 9 at 14:55










            • i.imgur.com/V4PKndj.png see here
              – omair issa
              Nov 9 at 15:10










            • i.imgur.com/3O5ofeX.png on Android Studio 3.2.1 I don't have the option. stackoverflow.com/a/49625983/7015599 suggests it was removed from Android Studio 3.2
              – esarkis
              Nov 9 at 15:25












            • Preferences > Build, Execution & Deployment > Debugger Then check or uncheck the box Use libusb backendhttps://stackoverflow.com/questions/47904505/android-studio-3-1-does-not-showing-android-option-under-tools-menu
              – omair issa
              Nov 9 at 20:48












            • Thank you but I've attempted that fix already and still no success. This is a lot of comments so I've created another post: stackoverflow.com/q/53229325/7015599
              – esarkis
              Nov 9 at 20:56













            up vote
            0
            down vote










            up vote
            0
            down vote









            You need to enable adb integration,
            Go to Tools-->Android-->Check Enable ADB Integration



            It was a default feature a few versions ago but now it has been disabled by default.






            share|improve this answer














            You need to enable adb integration,
            Go to Tools-->Android-->Check Enable ADB Integration



            It was a default feature a few versions ago but now it has been disabled by default.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 9 at 19:59









            rdj7

            7031718




            7031718










            answered Nov 9 at 14:41









            omair issa

            14




            14












            • Great to hear! I've searched Tools but can't find Android and I can't find Enable ADB Integration searching with the Find Action tool. I'm on Android Studio 3.2.1
              – esarkis
              Nov 9 at 14:55










            • i.imgur.com/V4PKndj.png see here
              – omair issa
              Nov 9 at 15:10










            • i.imgur.com/3O5ofeX.png on Android Studio 3.2.1 I don't have the option. stackoverflow.com/a/49625983/7015599 suggests it was removed from Android Studio 3.2
              – esarkis
              Nov 9 at 15:25












            • Preferences > Build, Execution & Deployment > Debugger Then check or uncheck the box Use libusb backendhttps://stackoverflow.com/questions/47904505/android-studio-3-1-does-not-showing-android-option-under-tools-menu
              – omair issa
              Nov 9 at 20:48












            • Thank you but I've attempted that fix already and still no success. This is a lot of comments so I've created another post: stackoverflow.com/q/53229325/7015599
              – esarkis
              Nov 9 at 20:56


















            • Great to hear! I've searched Tools but can't find Android and I can't find Enable ADB Integration searching with the Find Action tool. I'm on Android Studio 3.2.1
              – esarkis
              Nov 9 at 14:55










            • i.imgur.com/V4PKndj.png see here
              – omair issa
              Nov 9 at 15:10










            • i.imgur.com/3O5ofeX.png on Android Studio 3.2.1 I don't have the option. stackoverflow.com/a/49625983/7015599 suggests it was removed from Android Studio 3.2
              – esarkis
              Nov 9 at 15:25












            • Preferences > Build, Execution & Deployment > Debugger Then check or uncheck the box Use libusb backendhttps://stackoverflow.com/questions/47904505/android-studio-3-1-does-not-showing-android-option-under-tools-menu
              – omair issa
              Nov 9 at 20:48












            • Thank you but I've attempted that fix already and still no success. This is a lot of comments so I've created another post: stackoverflow.com/q/53229325/7015599
              – esarkis
              Nov 9 at 20:56
















            Great to hear! I've searched Tools but can't find Android and I can't find Enable ADB Integration searching with the Find Action tool. I'm on Android Studio 3.2.1
            – esarkis
            Nov 9 at 14:55




            Great to hear! I've searched Tools but can't find Android and I can't find Enable ADB Integration searching with the Find Action tool. I'm on Android Studio 3.2.1
            – esarkis
            Nov 9 at 14:55












            i.imgur.com/V4PKndj.png see here
            – omair issa
            Nov 9 at 15:10




            i.imgur.com/V4PKndj.png see here
            – omair issa
            Nov 9 at 15:10












            i.imgur.com/3O5ofeX.png on Android Studio 3.2.1 I don't have the option. stackoverflow.com/a/49625983/7015599 suggests it was removed from Android Studio 3.2
            – esarkis
            Nov 9 at 15:25






            i.imgur.com/3O5ofeX.png on Android Studio 3.2.1 I don't have the option. stackoverflow.com/a/49625983/7015599 suggests it was removed from Android Studio 3.2
            – esarkis
            Nov 9 at 15:25














            Preferences > Build, Execution & Deployment > Debugger Then check or uncheck the box Use libusb backendhttps://stackoverflow.com/questions/47904505/android-studio-3-1-does-not-showing-android-option-under-tools-menu
            – omair issa
            Nov 9 at 20:48






            Preferences > Build, Execution & Deployment > Debugger Then check or uncheck the box Use libusb backendhttps://stackoverflow.com/questions/47904505/android-studio-3-1-does-not-showing-android-option-under-tools-menu
            – omair issa
            Nov 9 at 20:48














            Thank you but I've attempted that fix already and still no success. This is a lot of comments so I've created another post: stackoverflow.com/q/53229325/7015599
            – esarkis
            Nov 9 at 20:56




            Thank you but I've attempted that fix already and still no success. This is a lot of comments so I've created another post: stackoverflow.com/q/53229325/7015599
            – esarkis
            Nov 9 at 20:56












            up vote
            0
            down vote



            accepted










            I've found a solution thanks to Unity's list of Android profilers.



            At this time on Android Studio version 3.2.1 ADB and the Android Profiler do not work together over WiFi.



            For my case I've found simpleperf to be acceptable, a tool which includes functionality to generate CPU flame graphs. I used run_simpleperf_without_usb_connection.py specifically, as documented in the simpleperf README available here.






            share|improve this answer



























              up vote
              0
              down vote



              accepted










              I've found a solution thanks to Unity's list of Android profilers.



              At this time on Android Studio version 3.2.1 ADB and the Android Profiler do not work together over WiFi.



              For my case I've found simpleperf to be acceptable, a tool which includes functionality to generate CPU flame graphs. I used run_simpleperf_without_usb_connection.py specifically, as documented in the simpleperf README available here.






              share|improve this answer

























                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                I've found a solution thanks to Unity's list of Android profilers.



                At this time on Android Studio version 3.2.1 ADB and the Android Profiler do not work together over WiFi.



                For my case I've found simpleperf to be acceptable, a tool which includes functionality to generate CPU flame graphs. I used run_simpleperf_without_usb_connection.py specifically, as documented in the simpleperf README available here.






                share|improve this answer














                I've found a solution thanks to Unity's list of Android profilers.



                At this time on Android Studio version 3.2.1 ADB and the Android Profiler do not work together over WiFi.



                For my case I've found simpleperf to be acceptable, a tool which includes functionality to generate CPU flame graphs. I used run_simpleperf_without_usb_connection.py specifically, as documented in the simpleperf README available here.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 19 at 13:40

























                answered Nov 19 at 13:26









                esarkis

                838




                838






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53227785%2fhow-to-profile-android-application-without-usb-connection-to-device%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Wiesbaden

                    Marschland

                    Dieringhausen