本文整理汇总了Java中org.openjdk.jmh.profile.StackProfiler类的典型用法代码示例。如果您正苦于以下问题:Java StackProfiler类的具体用法?Java StackProfiler怎么用?Java StackProfiler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StackProfiler类属于org.openjdk.jmh.profile包,在下文中一共展示了StackProfiler类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: main
import org.openjdk.jmh.profile.StackProfiler; //导入依赖的package包/类
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(Maps.class.getSimpleName())
.addProfiler(StackProfiler.class)
// .addProfiler(GCProfiler.class)
.build();
new Runner(opt).run();
}
开发者ID:mumudemo,项目名称:mumu-benchmark,代码行数:10,代码来源:JMHSample_35_Profilers.java
示例2: main
import org.openjdk.jmh.profile.StackProfiler; //导入依赖的package包/类
@SuppressWarnings("ObjectAllocationInLoop") public static void main(final String[] args)
throws RunnerException {
final ChainedOptionsBuilder options =
new OptionsBuilder().addProfiler(HotspotThreadProfiler.class)
.addProfiler(HotspotRuntimeProfiler.class).addProfiler(HotspotMemoryProfiler.class)
.addProfiler(GCProfiler.class).addProfiler(StackProfiler.class).shouldFailOnError(true)
.forks(1).resultFormat(ResultFormatType.CSV).detectJvmArgs();
for (int nThreads = 1; nThreads <= 2; nThreads++) {
new Runner(
options.threads(nThreads).output(String.format("%d-thread_bench_results.csv", nThreads))
.build()).run();
}
}
开发者ID:Pr0methean,项目名称:BetterRandom,代码行数:14,代码来源:AbstractRandomBenchmark.java
示例3: main
import org.openjdk.jmh.profile.StackProfiler; //导入依赖的package包/类
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(MemcachedClientsBenchmark.class.getSimpleName())
.forks(1)
.addProfiler(StackProfiler.class)
.build();
new Runner(opt).run();
}
开发者ID:eranharel,项目名称:memcached-java-clients-benchmark,代码行数:10,代码来源:MemcachedClientsBenchmark.java
示例4: main
import org.openjdk.jmh.profile.StackProfiler; //导入依赖的package包/类
public static void main(String[] args) throws Exception {
Options opt = new OptionsBuilder()
.include(".*" + BenchmarkParserAndMapperInMemory.class.getSimpleName()+".*")
// .addProfiler(LinuxPerfAsmProfiler.class)
.addProfiler(StackProfiler.class)
.build();
new Runner(opt).run();
}
开发者ID:jasonk000,项目名称:zerocsv,代码行数:9,代码来源:BenchmarkParserAndMapperInMemory.java
示例5: main
import org.openjdk.jmh.profile.StackProfiler; //导入依赖的package包/类
public static void main(String[] args) throws Exception {
Options opt = new OptionsBuilder()
.include(BenchmarkQueryEngine.class.getSimpleName())
.forks(1)
.warmupTime(TimeValue.seconds(6))
.warmupIterations(10)
.measurementTime(TimeValue.seconds(6))
.measurementIterations(10)
.addProfiler(StackProfiler.class)
.build();
new Runner(opt).run();
}
开发者ID:Hanmourang,项目名称:Pinot,代码行数:15,代码来源:BenchmarkQueryEngine.java
示例6: main
import org.openjdk.jmh.profile.StackProfiler; //导入依赖的package包/类
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(HttpUrlBenchmark.class.getSimpleName())
.warmupIterations(3)
.measurementIterations(5)
.addProfiler(StackProfiler.class)
.build();
new Runner(opt).run();
}
开发者ID:softindex,项目名称:datakernel,代码行数:11,代码来源:HttpUrlBenchmark.java
示例7: tiffTest
import org.openjdk.jmh.profile.StackProfiler; //导入依赖的package包/类
@Test
public void tiffTest() throws RunnerException {
Options opt = new OptionsBuilder()
.include(WriteLargeFileTest.class.getSimpleName()).forks(1)
.result("resultsLarge.txt").resultFormat(ResultFormatType.TEXT)
.addProfiler(StackProfiler.class).build();
new Runner(opt).run();
}
开发者ID:scifio,项目名称:scifio-benchmark,代码行数:9,代码来源:WriteLargeFileTest.java
示例8: main
import org.openjdk.jmh.profile.StackProfiler; //导入依赖的package包/类
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(KeyEqualsBench.class.getSimpleName())
.addProfiler(StackProfiler.class)
// .addProfiler(GCProfiler.class)
.build();
new Runner(opt).run();
}
开发者ID:h2oai,项目名称:h2o-3,代码行数:10,代码来源:KeyEqualsBench.java
示例9: main
import org.openjdk.jmh.profile.StackProfiler; //导入依赖的package包/类
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(GlmMultinomialMojoBench.class.getSimpleName())
.addProfiler(StackProfiler.class)
.build();
new Runner(opt).run();
}
开发者ID:h2oai,项目名称:h2o-3,代码行数:9,代码来源:GlmMojoBench.java
示例10: main
import org.openjdk.jmh.profile.StackProfiler; //导入依赖的package包/类
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(ChunkBench.class.getSimpleName())
.addProfiler(StackProfiler.class)
// .addProfiler(GCProfiler.class)
.build();
new Runner(opt).run();
}
开发者ID:h2oai,项目名称:h2o-3,代码行数:10,代码来源:ChunkBench.java
示例11: main
import org.openjdk.jmh.profile.StackProfiler; //导入依赖的package包/类
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(AUCBuilderBench.class.getSimpleName())
.addProfiler(StackProfiler.class)
.build();
new Runner(opt).run();
}
开发者ID:h2oai,项目名称:h2o-3,代码行数:9,代码来源:AUCBuilderBench.java
示例12: main
import org.openjdk.jmh.profile.StackProfiler; //导入依赖的package包/类
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(".*" + Benchmark.class.getSimpleName() + ".*")
.resultFormat(ResultFormatType.CSV)
.result("results.csv")
.addProfiler(GCProfiler.class)
.addProfiler(StackProfiler.class)
.build();
new Runner(opt).run();
}
开发者ID:tdunning,项目名称:t-digest-benchmark,代码行数:12,代码来源:Benchmark.java
示例13: main
import org.openjdk.jmh.profile.StackProfiler; //导入依赖的package包/类
public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder()
.include(".*" + FloatHistogramBench.class.getSimpleName() + ".*")
.resultFormat(ResultFormatType.CSV)
.result("overall-results.csv")
.addProfiler(StackProfiler.class)
.addProfiler(GCProfiler.class)
.build();
new Runner(opt).run();
}
开发者ID:tdunning,项目名称:t-digest-benchmark,代码行数:12,代码来源:FloatHistogramBench.java
示例14: main
import org.openjdk.jmh.profile.StackProfiler; //导入依赖的package包/类
public static void main(String[] args) throws Exception {
ChainedOptionsBuilder opt = new OptionsBuilder()
.include(BenchmarkQueryEngine.class.getSimpleName())
.warmupTime(TimeValue.seconds(30))
.warmupIterations(4)
.measurementTime(TimeValue.seconds(30))
.measurementIterations(20);
if (ENABLE_PROFILING) {
opt = opt.addProfiler(StackProfiler.class,
"excludePackages=true;excludePackageNames=sun.,java.net.,io.netty.,org.apache.zookeeper.,org.eclipse.jetty.;lines=5;period=1;top=20");
}
new Runner(opt.build()).run();
}
开发者ID:linkedin,项目名称:pinot,代码行数:16,代码来源:BenchmarkQueryEngine.java
注:本文中的org.openjdk.jmh.profile.StackProfiler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论