Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Commit

Permalink
Increase HPROF stack trace depth.
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwinter committed May 12, 2022
1 parent 4bd0d64 commit 9a75304
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metafix-runner/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ application {

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

applicationDefaultJvmArgs = ["-agentlib:hprof=heap=sites,cpu=samples,depth=${depth},file=${file}.hprof.txt"]
}
}

0 comments on commit 9a75304

Please sign in to comment.