- Use Chrome Beta/Dev/Canary
- Open incognito tab, to make sure no extensions are interfering with page loading and adding delays (React dev tools etc)
- Open an empty tab each time, open devtools, go to Performance tab
- Click CTRL-E to start profiling
- Only now enter the URL in the URL bar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in app/src/main/res/*/strings.xml ; do echo -e "\n$file\n"; grep "TEST" $file; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#to better handle spaces in URL: | |
# cut -d'"' -f1,2 | cut -d' ' -f1,4- | |
#instead of | |
# cut -d" " -f1,4,5 | |
#alias ag-sort-by-ip-url-freq='cut -d" " -f1,4,5 | sed "s/\(GET\|POST\|HEAD\) //" | cut -d"|" -f2,4 | sed -r "s/\|(\b[0-9]{1,3}\.){3}[0-9]{1,3}\b//" | awk "{ print \$2 \" \" \$1}" | sort | uniq -c | sort -nr' | |
#alias ag-sort-by-url-freq="cut -d' ' -f4,5 | sed 's/\(GET\|POST\|HEAD\) //' | sort | uniq -c | sort -nr" | |
alias ag-sort-by-ip-url-freq='cut -d'\"' -f1,2 | cut -d" " -f1,4- | sed "s/\(GET\|POST\|HEAD\) //" | cut -d"|" -f2,4 | sed -r "s/\|(\b[0-9]{1,3}\.){3}[0-9]{1,3}\b//" | awk "{ print \$2 \" \" \$1}" | sort | uniq -c | sort -nr' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.google-analytics.com; *.virtualearth.net; *.google.com; *.googleadservices.com; *.githubusercontent.com; *.github.com; *.webexconnect.com; *.facebook.com; *.fbcdn.net; *.gstatic.com; *.branch.io; *.apple.com; *.icloud.com; *.googleapis.com; *.apple.news; *.crashlytics.com; *.accuweather.com; *.htcsense.com; *.googleapis.com; *.google.com; helpnewsrepublic1.ksmobile.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s -D - https://www.google.com/ -o /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1=0,99,201 | |
2=0,160,0 | |
4=180,0,0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat webpack.json | jq '.chunks[] | {id:.id, parents:.parents, modules:.modules} | del(.modules[].source) | del(.modules[].optimizationBailout)' | less > ../../player-bundle-analysis/webpack.json | |
cat ../../player-bundle-analysis/webpack.json | jq '{(.id):(.modules)}' | jq -n '[inputs]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls -s1 --block-size=K |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"window.zoomLevel": 1, | |
"window.title": "${rootPath}${separator}${activeEditorMedium}${separator}${appName}", | |
"workbench.editor.enablePreview": false, | |
"workbench.editor.enablePreviewFromQuickOpen": false, | |
"editor.mouseWheelZoom": true, | |
"window.menuBarVisibility": "default", | |
"window.titleBarStyle": "custom", | |
"files.eol": "\n" | |
} |
-
Check that you're debugging the proper file (correct URL, correct folder etc.)
-
Nuclear option: remove everything
-
Check the errors
-
Compare behavior before and after
-
Compare logs before and after
-
Check the commits in the meantime
-
"Nothing happens, and no errors": Look for missing callbacks