]> granicus.if.org Git - python/commit
bpo-31415: Add `-X importtime` option (GH-3490)
authorINADA Naoki <methane@users.noreply.github.com>
Tue, 3 Oct 2017 10:46:34 +0000 (19:46 +0900)
committerGitHub <noreply@github.com>
Tue, 3 Oct 2017 10:46:34 +0000 (19:46 +0900)
commit1a87de7fcfa3c19f08e29047337c350b4a32b259
treed95bb87f7d32b9146c3f92d0e6de38f39c560bc1
parente8c368df22c344183627e7ef882bea1683fe6dbe
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'
Doc/using/cmdline.rst
Misc/NEWS.d/next/Core and Builtins/2017-09-11-14-28-56.bpo-31415.GBdz7o.rst [new file with mode: 0644]
Python/import.c