Skip to content

Commit f494b72

Browse files
authored
Add debug non-safe points to Java profiling (#8089)
Add debug non-safe points to Java profiling
1 parent dc052c1 commit f494b72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tools/perf-automation/Azure.Sdk.Tools.PerfAutomation

tools/perf-automation/Azure.Sdk.Tools.PerfAutomation/Java.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public override async Task<IterationResult> RunAsync(
130130
if (profile)
131131
{
132132
var profileOutputPath = Path.GetFullPath(Path.Combine(Util.GetProfileDirectory(WorkingDirectory), $"{testName}_{profileCount++}.jfr"));
133-
profilingConfig = $"-XX:StartFlightRecording=filename={profileOutputPath},maxsize=1gb";
133+
profilingConfig = $"-XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints -XX:StartFlightRecording=filename={profileOutputPath},maxsize=1gb";
134134

135135
// If Java 8 is the version of Java being used add '-XX:+UnlockCommercialFeatures' as that is required to run Java Flight Recording in Java 8.
136136
// Don't add '-XX:+UnlockCommercialFeatures' if it is any other version as this causes the JVM to crash on an unrecognized VM options.

0 commit comments

Comments
 (0)