mirror of
https://github.com/codeflash-ai/codeflash.git
synced 2026-05-04 18:25:17 +00:00
fix: drop jdk.ExecutionSample#period from combined JFR opts (unsupported on Java 11)
This commit is contained in:
parent
0d928f2b49
commit
013c83f5e4
1 changed files with 1 additions and 4 deletions
|
|
@ -138,10 +138,7 @@ class JavaTracer:
|
|||
def build_combined_env(self, jfr_file: Path, config_path: Path, classpath: str | None = None) -> dict[str, str]:
|
||||
"""Build env with both JFR recording and tracing agent in a single JAVA_TOOL_OPTIONS."""
|
||||
env = os.environ.copy()
|
||||
jfr_opts = (
|
||||
f"-XX:StartFlightRecording=filename={jfr_file.resolve()},settings=profile,dumponexit=true"
|
||||
",jdk.ExecutionSample#period=1ms"
|
||||
)
|
||||
jfr_opts = f"-XX:StartFlightRecording=filename={jfr_file.resolve()},settings=profile,dumponexit=true"
|
||||
agent_jar = find_agent_jar(classpath=classpath)
|
||||
if agent_jar is None:
|
||||
msg = "codeflash-runtime JAR not found, cannot run tracing agent"
|
||||
|
|
|
|||
Loading…
Reference in a new issue