# HG changeset patch # User Anselm Kruis # Date 1360010271 -3600 # Branch 2.7-slp-fg2 # Node ID 8d3eeda775dda7a9c2aedb4bcbd7ea1b1910bc08 # Parent f4236d08fa90291f0852d92f4e564b6ecac03beb Fix "build_pgo.bat -2". Currently this command runs the full test suite to profile python. Unfortunately some tests cause the profiling process to not collect profiling data for python27.dll. This change runs only tests that don't cause problems. diff --git a/PCbuild/build_pgo.bat b/PCbuild/build_pgo.bat --- a/PCbuild/build_pgo.bat +++ b/PCbuild/build_pgo.bat @@ -13,7 +13,7 @@ set path1=..\tools\pybench rem or the whole testsuite for more thorough testing -set job2=..\lib\test\regrtest.py +set job2=..\lib\test\regrtest.py -f pgo_test_list.txt set path2=..\lib set job=%job1% @@ -21,7 +21,7 @@ :CheckOpts if "%1"=="-p" (set platf=%2) & shift & shift & goto CheckOpts -if "%1"=="-2" (set job=%job2%) & (set clrpath=%path2%) & shift & goto CheckOpts +if "%1"=="-2" (set job=%job2%) & (set clrpath=%path2%) & (set VCPROFILE_ALLOC_SCALE=2) & shift & goto CheckOpts set PGI=%platf%-pgi set PGO=%platf%-pgo diff --git a/PCbuild/pgo_test_list.txt b/PCbuild/pgo_test_list.txt new file mode 100644 --- /dev/null +++ b/PCbuild/pgo_test_list.txt @@ -0,0 +1,327 @@ +test_grammar +test_opcodes +test_dict +test_builtin +test_exceptions +test_types +test_unittest +test_doctest +test_doctest2 +test_MimeWriter +test_SimpleHTTPServer +test_StringIO +test___all__ +test___future__ +test__locale +test_abc +test_abstract_numbers +test_aifc +test_anydbm +test_argparse +test_array +test_ascii_formatd +test_ast +test_asynchat +test_asyncore +test_atexit +test_audioop +test_augassign +test_base64 +test_bastion +test_bigaddrspace +test_bigmem +test_binascii +test_binhex +test_binop +test_bisect +test_bool +test_bsddb +test_buffer +test_bufio +test_bytes +test_bz2 +test_calendar +test_call +test_capi +test_cfgparser +test_cgi +test_charmapcodec +test_class +test_cmath +test_cmd +test_cmd_line +test_cmd_line_script +test_code +test_codeccallbacks +test_codecencodings_cn +test_codecencodings_hk +test_codecencodings_iso2022 +test_codecencodings_jp +test_codecencodings_kr +test_codecencodings_tw +test_codecs +test_codeop +test_coding +test_coercion +test_collections +test_colorsys +test_compare +test_compile +test_compileall +test_compiler +test_complex +test_complex_args +test_contains +test_contextlib +test_cookie +test_cookielib +test_copy +test_copy_reg +test_cpickle +test_cprofile +test_csv +test_ctypes +test_datetime +test_decimal +test_decorators +test_defaultdict +test_deque +test_descr +test_descr +test_descrtut +test_dictcomps +test_dictviews +test_difflib +test_dircache +test_dis +test_docxmlrpc +test_dumbdbm +test_dummy_thread +test_dummy_threading +test_email +test_email_codecs +test_email_renamed +test_enumerate +test_eof +test_errno +test_exception_variations +test_extcall +test_file +test_file2k +test_file_eintr +test_filecmp +test_fileinput +test_fileio +test_float +test_fnmatch +test_format +test_fpformat +test_fractions +test_frozen +test_ftplib +test_funcattrs +test_functools +test_future +test_future3 +test_future4 +test_future5 +test_future_builtins +test_gc +test_generators +test_genericpath +test_genexps +test_getargs +test_getargs2 +test_getopt +test_gettext +test_glob +test_global +test_gzip +test_hash +test_hashlib +test_heapq +test_hmac +test_hotshot +test_htmllib +test_htmlparser +test_httplib +test_httpservers +test_imageop +test_imaplib +test_imp +test_import +test_importhooks +test_importlib +test_index +test_inspect +test_int +test_int_literal +test_io +test_isinstance +test_iter +test_iterlen +test_itertools +test_json +test_lib2to3 +test_linecache +test_list +test_locale +test_logging +test_long +test_long_future +test_longexp +test_macpath +test_mailbox +test_marshal +test_math +test_md5 +test_memoryio +test_memoryview +test_mimetools +test_mimetypes +test_minidom +test_mmap +test_module +test_modulefinder +test_msilib +test_multibytecodec +test_multibytecodec_support +test_multifile +test_mutants +test_mutex +test_netrc +test_new +test_normalization +test_ntpath +test_old_mailbox +test_operator +test_optparse +# test_os # breaks PGO +test_parser +test_pdb +test_peepholer +test_pep247 +test_pep263 +test_pep277 +test_pep292 +test_pep352 +test_pickle +test_pickletools +test_pkg +test_pkgimport +test_pkgutil +test_platform +test_plistlib +test_popen +test_popen2 +test_poplib +test_posixpath +test_pow +test_pprint +test_print +test_profile +test_property +test_pstats +test_py_compile +test_pyclbr +test_pydoc +test_pyexpat +test_queue +test_quopri +test_random +test_re +test_repr +test_rfc822 +test_richcmp +test_rlcompleter +test_robotparser +test_runpy +test_sax +test_scope +test_select +test_set +test_setcomps +test_sets +test_sgmllib +test_sha +test_shelve +test_shlex +test_shutil +test_signal +test_site +test_slice +test_smtplib +test_socket +test_softspace +test_sort +test_sqlite +test_ssl +test_startfile +test_str +test_strftime +test_string +test_stringprep +test_strop +test_strptime +test_strtod +test_struct +test_structmembers +test_structseq +# test_subprocess # breaks pgo +test_sundry +test_symtable +test_syntax +test_sys +test_sys_setprofile +test_sys_settrace +test_tarfile +test_telnetlib +test_tempfile +test_textwrap +test_thread +test_threaded_import +test_threadedtempfile +test_threading +test_threading_local +test_time +test_tokenize +test_trace +test_traceback +test_transformer +test_tuple +test_typechecks +test_ucn +test_unary +test_undocumented_details +test_unicode +test_unicode_file +test_unicodedata +test_univnewlines +test_univnewlines2k +test_unpack +test_urllib +test_urllib2 +test_urllib2_localnettest_urlparse +test_userdict +test_userlist +test_userstring +test_uu +test_uuid +test_warnings +test_wave +test_weakref +test_weakset +test_whichdb +test_winreg +test_with +test_wsgiref +test_xdrlib +test_xml_etree +test_xml_etree_c +test_xmllib +test_xmlrpc +test_xrange +test_zipfile +test_zipimport +test_zipimport_support +test_zlib