Skip to content

Commit 013c83f

Browse files
committed
fix: drop jdk.ExecutionSample#period from combined JFR opts (unsupported on Java 11)
1 parent 0d928f2 commit 013c83f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

codeflash/languages/java/tracer.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,7 @@ def build_agent_env(self, config_path: Path, classpath: str | None = None) -> di
138138
def build_combined_env(self, jfr_file: Path, config_path: Path, classpath: str | None = None) -> dict[str, str]:
139139
"""Build env with both JFR recording and tracing agent in a single JAVA_TOOL_OPTIONS."""
140140
env = os.environ.copy()
141-
jfr_opts = (
142-
f"-XX:StartFlightRecording=filename={jfr_file.resolve()},settings=profile,dumponexit=true"
143-
",jdk.ExecutionSample#period=1ms"
144-
)
141+
jfr_opts = f"-XX:StartFlightRecording=filename={jfr_file.resolve()},settings=profile,dumponexit=true"
145142
agent_jar = find_agent_jar(classpath=classpath)
146143
if agent_jar is None:
147144
msg = "codeflash-runtime JAR not found, cannot run tracing agent"

0 commit comments

Comments
 (0)