Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public override async Task<IterationResult> RunAsync(
if (profile)
{
var profileOutputPath = Path.GetFullPath(Path.Combine(Util.GetProfileDirectory(WorkingDirectory), $"{testName}_{profileCount++}.jfr"));
profilingConfig = $"-XX:StartFlightRecording=filename={profileOutputPath},maxsize=1gb";
profilingConfig = $"-XX:StartFlightRecording=filename={profileOutputPath},maxsize=1gb -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints";

// 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.
// Don't add '-XX:+UnlockCommercialFeatures' if it is any other version as this causes the JVM to crash on an unrecognized VM options.
Expand Down