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

Method tryGet

test/one/profiler/test/SourceCode.java:13–15  ·  view source on GitHub ↗
(int ignoreFrames)

Source from the content-addressed store, hash-verified

11
12public class SourceCode {
13 public static String tryGet(int ignoreFrames) {
14 return tryGet(new Exception(), ignoreFrames + 1);
15 }
16
17 public static String tryGet(Throwable e, int ignoreFrames) {
18 StackTraceElement[] stackTrace = e.getStackTrace();

Callers 1

assertComparisonMethod · 0.95

Calls 4

getFilePathMethod · 0.95
getSourceCodeAtMethod · 0.95
getClassNameMethod · 0.80
getLineNumberMethod · 0.80

Tested by

no test coverage detected