bpo-31415: Support PYTHONPROFILEIMPORTTIME envvar equivalent to -X im… · python/cpython@700d2e4 · GitHub
Skip to content

Commit 700d2e4

Browse files
authored
bpo-31415: Support PYTHONPROFILEIMPORTTIME envvar equivalent to -X importtime (#4240)
Support PYTHONPROFILEIMPORTTIME envvar equivalent to -X importtime
1 parent 9e33973 commit 700d2e4

3 files changed

Lines changed: 25 additions & 7 deletions

File tree

Doc/using/cmdline.rst

Lines changed: 12 additions & 2 deletions

Misc/NEWS.d/3.7.0a2.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ special method lookups. Patch by Stefan Behnel.
166166
.. section: Core and Builtins
167167
168168
Add ``-X importtime`` option to show how long each import takes. It can be
169-
used to optimize application's startup time.
169+
used to optimize application's startup time. Support the
170+
:envvar:`PYTHONPROFILEIMPORTTIME` as an equivalent way to enable this.
170171

171172
..
172173

Python/import.c

Lines changed: 11 additions & 4 deletions

0 commit comments

Comments
 (0)