systrace fail to generate output html file if test app fails Unicorn Meta Zoo #1: Why another...

How would I use different systems of magic when they are capable of the same effects?

Is it acceptable to use working hours to read general interest books?

Does Feeblemind produce an ongoing magical effect that can be dispelled?

Map material from china not allowed to leave the country

What is the term for a person whose job is to place products on shelves in stores?

Married in secret, can marital status in passport be changed at a later date?

Is it OK if I do not take the receipt in Germany?

Why did Israel vote against lifting the American embargo on Cuba?

Could moose/elk survive in the Amazon forest?

What ability score does a Hexblade's Pact Weapon use for attack and damage when wielded by another character?

Multiple options vs single option UI

What's the difference between using dependency injection with a container and using a service locator?

Can you stand up from being prone using Skirmisher outside of your turn?

Is a 5 watt UHF/VHF handheld considered QRP?

What was Apollo 13's "Little Jolt" after MECO?

Implementing 3DES algorithm in Java: is my code secure?

France's Public Holidays' Puzzle

How to get even lighting when using flash for group photos near wall?

Is accepting an invalid credit card number a security issue?

My admission is revoked after accepting the admission offer

Align column where each cell has two decimals with siunitx

Justification for leaving new position after a short time

"Rubric" as meaning "signature" or "personal mark" -- is this accepted usage?

Check if a string is entirely made of the same substring



systrace fail to generate output html file if test app fails



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!How to redirect output to a file and stdoutHow do I get the path of the current executed file in Python?Redirect all output to fileexecuting a python script from another python scriptImport python module from external urlCreate chm file for html files by recursively searching through foldersUsing a response from server to output in htmlHow to get information in core handler programOutput HTML using a template and JSON for dataExtract fields from JSON file to rewrite it





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I am working on AOSP build and trying to generate systrace output file in .html file for performance measurement through my test module and then process it into a .json file. But I am facing a problem while automating this process with python script since few days. I found developer guide in android community:



https://source.android.com/devices/tech/debug/systrace



https://developer.android.com/studio/command-line/systrace



Here what I am trying to do:




  1. A top level python script file to process arguments, let say A.py

  2. processing i/p args and call AOSP systrace.py file.
    sample cmd:



python systrace.py --app test_module_path -o output_file_name.html --atrace-categories=app,hal,sched,freq,idle




Observation:



If I invoke this script from my main script through subprocess.open(), then it is not creating .html file. On the contrary if I invoke it separately, it generates a .html file but I am suspecting if .html generated is proper as json file not able to be generates from out of it!



Query:




  1. Does anybody point if systrace.py doesn't create output file if test_module_path gtest fails some testcases.

  2. How to know if proper .html file is generated.










share|improve this question















migrated from superuser.com 14 hours ago


This question came from our site for computer enthusiasts and power users.

























    0















    I am working on AOSP build and trying to generate systrace output file in .html file for performance measurement through my test module and then process it into a .json file. But I am facing a problem while automating this process with python script since few days. I found developer guide in android community:



    https://source.android.com/devices/tech/debug/systrace



    https://developer.android.com/studio/command-line/systrace



    Here what I am trying to do:




    1. A top level python script file to process arguments, let say A.py

    2. processing i/p args and call AOSP systrace.py file.
      sample cmd:



    python systrace.py --app test_module_path -o output_file_name.html --atrace-categories=app,hal,sched,freq,idle




    Observation:



    If I invoke this script from my main script through subprocess.open(), then it is not creating .html file. On the contrary if I invoke it separately, it generates a .html file but I am suspecting if .html generated is proper as json file not able to be generates from out of it!



    Query:




    1. Does anybody point if systrace.py doesn't create output file if test_module_path gtest fails some testcases.

    2. How to know if proper .html file is generated.










    share|improve this question















    migrated from superuser.com 14 hours ago


    This question came from our site for computer enthusiasts and power users.





















      0












      0








      0








      I am working on AOSP build and trying to generate systrace output file in .html file for performance measurement through my test module and then process it into a .json file. But I am facing a problem while automating this process with python script since few days. I found developer guide in android community:



      https://source.android.com/devices/tech/debug/systrace



      https://developer.android.com/studio/command-line/systrace



      Here what I am trying to do:




      1. A top level python script file to process arguments, let say A.py

      2. processing i/p args and call AOSP systrace.py file.
        sample cmd:



      python systrace.py --app test_module_path -o output_file_name.html --atrace-categories=app,hal,sched,freq,idle




      Observation:



      If I invoke this script from my main script through subprocess.open(), then it is not creating .html file. On the contrary if I invoke it separately, it generates a .html file but I am suspecting if .html generated is proper as json file not able to be generates from out of it!



      Query:




      1. Does anybody point if systrace.py doesn't create output file if test_module_path gtest fails some testcases.

      2. How to know if proper .html file is generated.










      share|improve this question
















      I am working on AOSP build and trying to generate systrace output file in .html file for performance measurement through my test module and then process it into a .json file. But I am facing a problem while automating this process with python script since few days. I found developer guide in android community:



      https://source.android.com/devices/tech/debug/systrace



      https://developer.android.com/studio/command-line/systrace



      Here what I am trying to do:




      1. A top level python script file to process arguments, let say A.py

      2. processing i/p args and call AOSP systrace.py file.
        sample cmd:



      python systrace.py --app test_module_path -o output_file_name.html --atrace-categories=app,hal,sched,freq,idle




      Observation:



      If I invoke this script from my main script through subprocess.open(), then it is not creating .html file. On the contrary if I invoke it separately, it generates a .html file but I am suspecting if .html generated is proper as json file not able to be generates from out of it!



      Query:




      1. Does anybody point if systrace.py doesn't create output file if test_module_path gtest fails some testcases.

      2. How to know if proper .html file is generated.







      linux performance python android






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 9 hours ago







      BlackFurry

















      asked 15 hours ago









      BlackFurryBlackFurry

      11




      11




      migrated from superuser.com 14 hours ago


      This question came from our site for computer enthusiasts and power users.









      migrated from superuser.com 14 hours ago


      This question came from our site for computer enthusiasts and power users.


























          0






          active

          oldest

          votes












          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',
          autoActivateHeartbeat: false,
          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%2f55830118%2fsystrace-fail-to-generate-output-html-file-if-test-app-fails%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55830118%2fsystrace-fail-to-generate-output-html-file-if-test-app-fails%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

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...