MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / main

Method main

test/test/api/DumpCollapsed.java:14–25  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

12public class DumpCollapsed extends BusyLoops {
13
14 public static void main(String[] args) throws Exception {
15 AsyncProfiler.getInstance().start(Events.CPU, 1_000_000);
16
17 for (int i = 0; i < 5; i++) {
18 method1();
19 method2();
20 method3();
21 }
22
23 String profile = AsyncProfiler.getInstance().dumpCollapsed(Counter.SAMPLES);
24 System.out.println(profile);
25 }
26}

Callers

nothing calls this directly

Calls 6

getInstanceMethod · 0.95
startMethod · 0.65
dumpCollapsedMethod · 0.65
method1Method · 0.45
method2Method · 0.45
method3Method · 0.45

Tested by

no test coverage detected