Created
September 6, 2014 20:09
-
-
Save jeremyje/b10b0e91e631a82c5f00 to your computer and use it in GitHub Desktop.
Startup script for systemd based OSes to profile startup performance.
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
#!/bin/bash | |
ID=${RANDOM} | |
export CLOUDSDK_PYTHON=/usr/bin/python2 | |
systemd-analyze plot > plot.svg | |
systemd-analyze blame > systemd-analyze-blame.txt | |
systemd-analyze critical-chain > systemd-analyze-critical-chain.txt | |
gsutil cp *.txt gs://jeremyje/systemd-debug-${ID}/ | |
gsutil cp *.svg gs://jeremyje/systemd-debug-${ID}/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment