googlecodelabs / android-perf-testing

Automated Performance Testing on Android
https://codelabs.developers.google.com/codelabs/android-perf-testing/
Apache License 2.0
93 stars 39 forks source link

Step 5. Using Systrace - blank page in browser #15

Closed jimandreas closed 5 years ago

jimandreas commented 8 years ago

When trying step 5 - I see a blank page in the browser for traces. I am running windows 7 - note that this has also been observed in Ubuntu. The root cause appears to be the removal of the "Object.observe" function in Chrome 50+. A pretty simple workaround is shown below.

http://stackoverflow.com/questions/36865899/react-native-android-systrace-html-is-blank-in-ubuntu-14-04/37008945

The workaround noted in one of the stack overflow responses is to add the following to the start of the trace.html file in the head section:

<script src="https://rawgit.com/MaxArt2501/object-observe/master/dist/object-observe.min.js"></script>

This works for me.

The example errors in the blank page in Chrome Version 51.0.2704.79 m are shown below:

image

vusimoy0 commented 8 years ago

Hey, I also had this issue. Another way you can get around this problem you can open a new tab and navigate to chrome://tracing/ then hit load and browse for your file.

You should see something like this:

alt tag

Worked for me

hufeng commented 8 years ago

While importing: Error: Couldn't create an importer for the provided eventData. at Import.createImporter_ (chrome://tracing/tracing.js:1322:3342) at Import.createImports (chrome://tracing/tracing.js:1317:21) at Task.run (chrome://tracing/tracing.js:1860:13) at runAnother (chrome://tracing/tracing.js:1872:136) at runTask (chrome://tracing/tracing.js:1835:57) at processIdleWork (chrome://tracing/tracing.js:1841:116) at window.requestIdleCallback.timeout (chrome://tracing/tracing.js:1829:81)