本文整理了Java中org.jruby.Ruby.getProfilingService
方法的一些代码示例,展示了Ruby.getProfilingService
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ruby.getProfilingService
方法的具体详情如下:
包路径:org.jruby.Ruby
类名称:Ruby
方法名:getProfilingService
暂无
代码示例来源:origin: org.jruby/jruby-complete
public ProfilingCacheEntryFactory( Ruby runtime, CacheEntryFactory previous) {
super(previous);
this.enhancer = runtime.getProfilingService().newMethodEnhancer( runtime );
}
代码示例来源:origin: org.jruby/jruby-core
public void startProfiling() {
isProfiling = true;
// use new profiling data every time profiling is started, useful in
// case users keep a reference to previous data after profiling stop
profileCollection = runtime.getProfilingService().newProfileCollection( this );
}
代码示例来源:origin: org.jruby/jruby-complete
public void startProfiling() {
isProfiling = true;
// use new profiling data every time profiling is started, useful in
// case users keep a reference to previous data after profiling stop
profileCollection = runtime.getProfilingService().newProfileCollection( this );
}
代码示例来源:origin: org.jruby/jruby-core
public ProfilingCacheEntryFactory( Ruby runtime, CacheEntryFactory previous) {
super(previous);
this.enhancer = runtime.getProfilingService().newMethodEnhancer( runtime );
}
代码示例来源:origin: org.jruby/jruby-core
/**
* Add a method, so it can be printed out later.
*
* @param id raw name String of the method to be profiled
* @param method
*/
void addProfiledMethod(final String id, final DynamicMethod method) {
if (!config.isProfiling() || method.isUndefined()) return;
getProfilingService().addProfiledMethod(id, method);
}
代码示例来源:origin: org.jruby/jruby-core
/**
* TDOD remove the synchronized. Synchronization should be a implementation detail of the ProfilingService.
* @param profileData
*/
public synchronized void printProfileData( ProfileCollection profileData ) {
getProfilingService().newProfileReporter(getCurrentContext()).report(profileData);
}
代码示例来源:origin: org.jruby/jruby-complete
/**
* Add a method, so it can be printed out later.
*
* @param id raw name String of the method to be profiled
* @param method
*/
void addProfiledMethod(final String id, final DynamicMethod method) {
if (!config.isProfiling() || method.isUndefined()) return;
getProfilingService().addProfiledMethod(id, method);
}
代码示例来源:origin: org.jruby/jruby-complete
/**
* TDOD remove the synchronized. Synchronization should be a implementation detail of the ProfilingService.
* @param profileData
*/
public synchronized void printProfileData( ProfileCollection profileData ) {
getProfilingService().newProfileReporter(getCurrentContext()).report(profileData);
}
内容来源于网络,如有侵权,请联系作者删除!