ice799 / pstack Goto Github PK
View Code? Open in Web Editor NEWPrint stack traces of running programs (wrapper around GDB)
Home Page: http://oss.oracle.com/projects/pstack-gdb/
License: GNU General Public License v2.0
Print stack traces of running programs (wrapper around GDB)
Home Page: http://oss.oracle.com/projects/pstack-gdb/
License: GNU General Public License v2.0
pstatck ======= Ruby backtrace additions by Joe Damato (ice799) - http://timetobleed.com - http://github.com/ice799 - [email protected] How to build pstack =================== cd /path/to/pstack-source autconf ./configure make sudo make install How to use ruby backtrace ========================= After you've built and installed pstrack simply: pstack-gdb --ruby <pid-of-ruby-process> Your ruby process will then output a stack trace. For example: -- 11.04.2009 16:10:25 from /home/joe/test2.rb:14:in `write' from /home/joe/test2.rb:14:in `puts' from /home/joe/test2.rb:14:in `ok' from /home/joe/test2.rb:16:in `ok' from /home/joe/test2.rb:27 from /home/joe/test2.rb:27:in `times' from /home/joe/test2.rb:27 OPTIONAL but STRONGLY RECOMMENDED ================================= Included with the source is a patch, rb_backtrace.patch, which applies to ruby-1.8.7_p72 to allow backtraces to be output to a file instead of stdout. This is useful if your application does lots of logging, or it needs stdout for something else. To use the patch simply: cd ruby-187-p72-src/ patch -p1 < /path/to/pstack/rb_backtrace.patch And then configure, make, and make install ruby like normal. You can then set the RUBY_BACKTRACE_FILE environment variable to a file, and backtraces wil be written to that file. For example: RUBY_BACKTRACE_FILE=/tmp/my-backtrace ruby my-application.rb The backtrace will be written to /tmp/my-backtrace.PID
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.