Top Description Fields Constructors Methods
org.jruby.runtime.profile.builtin

public Class ProfiledMethods

extends Object
Class Inheritance
Imports
org.jruby.Ruby, .RubyInstanceConfig, org.jruby.common.IRubyWarnings, .RubyWarnings, org.jruby.internal.runtime.methods.DynamicMethod, org.jruby.util.ByteList, .StringSupport, org.jruby.util.collections.NonBlockingHashMapLong, java.util.concurrent.ConcurrentMap

This is a collection af all methods which will be profiled. Current it's just a wrapper for a NonBlockingHashMapLong, but the implementation can be changed in the future without changing the interface.
Author
Andre Kullmann

Field Summary

Modifier and TypeField and Description
private final NonBlockingHashMapLong<ProfiledMethod>
private final Ruby

Constructor Summary

AccessConstructor and Description
public
ProfiledMethods(final Ruby runtime)

Method Summary

Modifier and TypeMethod and Description
public void
private RubyInstanceConfig
private ConcurrentMap<Long, ProfiledMethod>
public ProfiledMethod
getProfiledMethod(final long serial)

private int
private Ruby
private RubyWarnings
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

methodsback to summary
private final NonBlockingHashMapLong<ProfiledMethod> methods
runtimeback to summary
private final Ruby runtime

Constructor Detail

ProfiledMethodsback to summary
public ProfiledMethods(final Ruby runtime)

Method Detail

addProfiledMethodback to summary
public void addProfiledMethod(String name, DynamicMethod method)
getConfigback to summary
private RubyInstanceConfig getConfig()
getMethodsback to summary
private ConcurrentMap<Long, ProfiledMethod> getMethods()
getProfiledMethodback to summary
public ProfiledMethod getProfiledMethod(final long serial)
getProfileMaxMethodsback to summary
private int getProfileMaxMethods()
getRuntimeback to summary
private Ruby getRuntime()
getWarningsback to summary
private RubyWarnings getWarnings()