mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +00:00
gh-102567: Add -X importtime=2 for logging an importtime message for already-loaded modules (#118655)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
This commit is contained in:
parent
e6f8e0a035
commit
c4bcc6a778
15 changed files with 166 additions and 44 deletions
|
@ -585,7 +585,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'faulthandler': False,
|
||||
'tracemalloc': 0,
|
||||
'perf_profiling': 0,
|
||||
'import_time': False,
|
||||
'import_time': 0,
|
||||
'thread_inherit_context': DEFAULT_THREAD_INHERIT_CONTEXT,
|
||||
'context_aware_warnings': DEFAULT_CONTEXT_AWARE_WARNINGS,
|
||||
'code_debug_ranges': True,
|
||||
|
@ -998,7 +998,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'hash_seed': 123,
|
||||
'tracemalloc': 2,
|
||||
'perf_profiling': 0,
|
||||
'import_time': True,
|
||||
'import_time': 2,
|
||||
'code_debug_ranges': False,
|
||||
'show_ref_count': True,
|
||||
'malloc_stats': True,
|
||||
|
@ -1064,7 +1064,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'use_hash_seed': True,
|
||||
'hash_seed': 42,
|
||||
'tracemalloc': 2,
|
||||
'import_time': True,
|
||||
'import_time': 1,
|
||||
'code_debug_ranges': False,
|
||||
'malloc_stats': True,
|
||||
'inspect': True,
|
||||
|
@ -1100,7 +1100,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'use_hash_seed': True,
|
||||
'hash_seed': 42,
|
||||
'tracemalloc': 2,
|
||||
'import_time': True,
|
||||
'import_time': 1,
|
||||
'code_debug_ranges': False,
|
||||
'malloc_stats': True,
|
||||
'inspect': True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue