Skip to content

Commit

Permalink
Add command for running tests with -X jit-auto-profile
Browse files Browse the repository at this point in the history
Summary: Trying to shake out a few bugs and this is helpful.

Reviewed By: swtaarrs

Differential Revision: D49873554

fbshipit-source-id: a9f057768534f898bab0fb32fc0aef364b1dd791
  • Loading branch information
Alex Malyshev authored and facebook-github-bot committed Oct 9, 2023
1 parent 153701b commit ab6c198
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -1800,12 +1800,19 @@ define RUN_TESTCINDERJIT
# $(ASAN_TEST_ENV)$(TESTPYTHON) -X jit $(1) -X jit-multithreaded-compile-test -X jit-batch-compile-workers=10 $(srcdir)/Lib/test/multithreaded_compile_test.py $(TESTOPTS)
endef

define RUN_TESTCINDERJIT_AUTOPROFILE
$(ASAN_TEST_ENV)$(TESTPYTHON) -X usepycompiler -X jit-auto=1000 -X jit-auto-profile=10 -X jit-enable-inline-cache-stats-collection $(1) $(JIT_TEST_RUNNER) $(TESTOPTS)
endef

testcinder_jit: @DEF_MAKE_RULE@ platform
$(call RUN_TESTCINDERJIT,)

testcinder_jit_profile: @DEF_MAKE_RULE@ platform
$(call RUN_TESTCINDERJIT_PROFILE,)

testcinder_jit_auto_profile: @DEF_MAKE_RULE@ platform
$(call RUN_TESTCINDERJIT_AUTOPROFILE,)

testcinder_jit_shadowframe: @DEF_MAKE_RULE@ platform
$(call RUN_TESTCINDERJIT,-X jit-shadow-frame)

Expand Down

0 comments on commit ab6c198

Please sign in to comment.