
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
This README document introduces basic functionality of PLine. If you have any questions or comments, please send email to shiba@rvm.jp, or use http://github.com/soba1104/PLine/issues.
License Same as the license of Ruby runtime.
Installation $gem install pline
Currently, PLine supports Ruby1.9.3 and Ruby1.9.2 only. So, if you want to use PLine, please install PLine under Ruby1.9.3 or Ruby1.9.2 runtime.
def sum(a, b) a + b end
PLine.show_msec()
PLine.profile(self, :sum, true)
1000000.times{|i| sum(i, i)}
main.sum: tmp/sample.rb(4 - 6) |
---|
Line |
----------------------------------------- |
4 |
5 |
6 |
** Recursive call profiling PLine cannot profile recursive call statements correctly. Profiling results of recursive call statements may become short.
** Block invocation profiling PLine cannot profile exit points of block invocation. Profiling results of exit points of block invocation may become significantly short.
------------------------ example ------------------------
require 'pline'
def foo sum = 0 100000.times{|i| sum += i sum += i } sum end
PLine.profile(self, :foo, true) foo()
main.foo: tmp/test2.rb(3 - 10) |
---|
Line |
---------------------------------------- |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
** Using together with other profiler PLine rewrites RUBY_EVENT_LINE event to RUBY_EVENT_END event. So, when you use PLine, above events become incompatible. You should not use PLine together with other profilers which use above events.
** A API of specifying profiling
** APIs of specifying output
PLine.output=(io) Specify output io object. Default output of PLine is STDERR.
PLine.show_sec() Specify sec as the unit of measurement.
PLine.show_msec() Specify millisec as the unit of measurement.
PLine.show_usec() Specify microsec as the unit of measurement. Microsec is the default unit of measurement.
PLine.show_nsec() Specify nanosec as the unit of measurement.
FAQs
Unknown package
We found that pline demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.