Skip to content

Commit d5f94d6

Browse files
committed
ci(profiling): debug pprof output.
1 parent c312099 commit d5f94d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/profiling/test_main.py

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ def test_call_script_gevent(monkeypatch):
4343
def test_call_script_pytorch_gpu(tmp_path, monkeypatch):
4444
filename = str(tmp_path / "pprof")
4545
monkeypatch.setenv("DD_PROFILING_OUTPUT_PPROF", filename)
46+
monkeypatch.setenv("DD_PROFILING_ENABLED", "1")
47+
monkeypatch.setenv("DD_PROFILING_PYTORCH_ENABLED", "1")
4648
stdout, stderr, exitcode, pid = call_program(
4749
"ddtrace-run", sys.executable, os.path.join(os.path.dirname(__file__), "simple_program_pytorch_gpu.py")
4850
)

0 commit comments

Comments
 (0)