Results for: "partition"

Dispatch enter and leave events for AlternationPatternNode nodes and continue walking the tree.

Copy a AlternationPatternNode node

Get a single optional argument from the command line. If more than one argument is given, return only the first. Return nil if none are given.

No documentation available

Compile a RationalNode node

Dispatch enter and leave events for RationalNode nodes and continue walking the tree.

Copy a RationalNode node

Visit a RationalNode node.

No documentation available
No documentation available
No documentation available

Returns whether the HTTP session is to be kept alive.

No documentation available

Marshal dumps exit locations to the given filename.

Usage:

If --yjit-exit-locations is passed, a file named “yjit_exit_locations.dump” will automatically be generated.

If you want to collect traces manually, call dump_exit_locations directly.

Note that calling this in a script will generate stats after the dump is created, so the stats data may include exits from the dump itself.

In a script call:

at_exit do
  RubyVM::YJIT.dump_exit_locations("my_file.dump")
end

Then run the file with the following options:

ruby --yjit --yjit-trace-exits test.rb

Once the code is done running, use Stackprof to read the dump file. See Stackprof documentation for options.

No documentation available

Stop tracing object allocations.

Note that if ::trace_object_allocations_start is called n-times, then tracing will stop after calling ::trace_object_allocations_stop n-times.

Called before each event with line/column information.

No documentation available

Parse and return a Time from string

No documentation available
No documentation available

Returns a hash of default options used by the Ruby iseq compiler.

For details, see InstructionSequence.compile_option=.

Sets the default values for various optimizations in the Ruby iseq compiler.

Possible values for options include true, which enables all options, false which disables all options, and nil which leaves all options unchanged.

You can also pass a Hash of options that you want to change, any options not present in the hash will be left unchanged.

Possible option names (which are keys in options) which can be set to true or false include:

Additionally, :debug_level can be set to an integer.

These default options can be overwritten for a single run of the iseq compiler by passing any of the above values as the options parameter to ::new, ::compile and ::compile_file.

No documentation available
No documentation available
Search took: 4ms  ·  Total Results: 3946