org.jruby.Ruby.getProfilingService()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(203)

本文整理了Java中org.jruby.Ruby.getProfilingService方法的一些代码示例,展示了Ruby.getProfilingService的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ruby.getProfilingService方法的具体详情如下:
包路径:org.jruby.Ruby
类名称:Ruby
方法名:getProfilingService

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);
}

相关文章

Ruby类方法