Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matstc/shell-profiler
Profiler for shell scripts
https://github.com/matstc/shell-profiler
bash command-line profiling
Last synced: 4 days ago
JSON representation
Profiler for shell scripts
- Host: GitHub
- URL: https://github.com/matstc/shell-profiler
- Owner: matstc
- Created: 2012-05-29T16:41:13.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2018-11-20T22:04:31.000Z (almost 6 years ago)
- Last Synced: 2024-04-14T23:09:23.270Z (7 months ago)
- Topics: bash, command-line, profiling
- Language: Shell
- Size: 2.93 KB
- Stars: 19
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This python script can be used to profile a shell script.
Once the profiler is on the path, call it like so:
~> profile test-file.sh PARAM1 PARAM2
The output will look something like the following:
0.291234732 > /bin/bash line 7 echo 'loop: 1'
0.289730072 > /bin/bash line 6 for i in '`seq 100`'
0.006031990 > /bin/bash line 5 seq 10
0.005759716 >> /bin/bash line 8 seq 100
0.003070116 > /bin/bash line 9 echo c
0.003000021 > /bin/bash line 4 echo b
0.002927542 > /bin/bash line 3 echo a
0.002631426 > /bin/bash line 2 echo test-file.sh
0.000000000 > /bin/bash line 10 echo --- END OF PROFILING ---