summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2017-10-03 10:46:34 (GMT)
committerGitHub <noreply@github.com>2017-10-03 10:46:34 (GMT)
commit1a87de7fcfa3c19f08e29047337c350b4a32b259 (patch)
treed95bb87f7d32b9146c3f92d0e6de38f39c560bc1 /Misc
parente8c368df22c344183627e7ef882bea1683fe6dbe (diff)
downloadcpython-1a87de7fcfa3c19f08e29047337c350b4a32b259.zip
cpython-1a87de7fcfa3c19f08e29047337c350b4a32b259.tar.gz
cpython-1a87de7fcfa3c19f08e29047337c350b4a32b259.tar.bz2
bpo-31415: Add `-X importtime` option (GH-3490)
It shows show import time of each module. It's useful for optimizing startup time. Typical usage: python -X importtime -c 'import requests'
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2017-09-11-14-28-56.bpo-31415.GBdz7o.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2017-09-11-14-28-56.bpo-31415.GBdz7o.rst b/Misc/NEWS.d/next/Core and Builtins/2017-09-11-14-28-56.bpo-31415.GBdz7o.rst
new file mode 100644
index 0000000..52aa16a
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2017-09-11-14-28-56.bpo-31415.GBdz7o.rst
@@ -0,0 +1,2 @@
+Add ``-X importtime`` option to show how long each import takes. It can
+be used to optimize application's startup time.