Skip to content

Commit 9a75304

Browse files
committed
Increase HPROF stack trace depth.
1 parent 4bd0d64 commit 9a75304

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

metafix-runner/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ application {
1616

1717
if (project.hasProperty('profile')) {
1818
def file = project.getProperty('profile') ?: project.name
19-
applicationDefaultJvmArgs = ["-agentlib:hprof=heap=sites,cpu=samples,file=${file}.hprof.txt"]
19+
def depth = project.hasProperty('profile.depth') ? project.getProperty('profile.depth') : 8
20+
21+
applicationDefaultJvmArgs = ["-agentlib:hprof=heap=sites,cpu=samples,depth=${depth},file=${file}.hprof.txt"]
2022
}
2123
}

0 commit comments

Comments
 (0)