You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to accomplish a goal of being able to --profile a runtime created by jruby-rack thus I added (generic) support for passing "command-line" arguments via a jruby.runtime.arguments parameter. e.g. :
Of course one can pass anything jruby accepts on the command-line, but my main motivation would be profiling within a container, it ain't perfect as it interferes with trapping signals (if the container such as trinidad does trap ^C).
Unfortunately it does not work as expected and I was hoping for some advice, if it's doable or I'm heading towards a dead-end.
I'm running jruby -J-Djruby.runtime.arguments=--profile -S trinidad the runtime ends up being profiled as expected but all method names are shown as <unknown> :
actually I did find out that JRuby uses the global Ruby runtime for method names while profiling.
i'll try to extend it and if it gets into jruby-master, merge this one if no one has objections against this "hack" of mine ...
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey once again,
I was trying to accomplish a goal of being able to
--profilea runtime created by jruby-rack thus I added (generic) support for passing "command-line" arguments via ajruby.runtime.argumentsparameter. e.g. :Of course one can pass anything
jrubyaccepts on the command-line, but my main motivation would be profiling within a container, it ain't perfect as it interferes with trapping signals (if the container such as trinidad doestrap^C).Unfortunately it does not work as expected and I was hoping for some advice, if it's doable or I'm heading towards a dead-end.
I'm running
jruby -J-Djruby.runtime.arguments=--profile -S trinidadthe runtime ends up being profiled as expected but all method names are shown as<unknown>:Is there anything I could do to make the method names "visible" ?
Appreciate any input ...