本文整理汇总了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();
}
示例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();
}
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}