Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
cebe80b5
Kaydet (Commit)
cebe80b5
authored
Haz 07, 2018
tarafından
Scott Sanderson
Kaydeden (comit)
INADA Naoki
Haz 07, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-29235: Update document for Profiler's context manager (GH-7331)
üst
fffeb6f3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
profile.rst
Doc/library/profile.rst
+3
-0
3.8.rst
Doc/whatsnew/3.8.rst
+2
-0
2018-05-14-15-01-55.bpo-29235.47Fzwt.rst
...S.d/next/Library/2018-05-14-15-01-55.bpo-29235.47Fzwt.rst
+2
-8
No files found.
Doc/library/profile.rst
Dosyayı görüntüle @
cebe80b5
...
...
@@ -272,6 +272,9 @@ functions:
pr.print_stats()
.. versionchanged:: 3.8
Added context manager support.
.. method:: enable()
Start collecting profiling data.
...
...
Doc/whatsnew/3.8.rst
Dosyayı görüntüle @
cebe80b5
...
...
@@ -151,6 +151,8 @@ Changes in the Python API
``type.__new__``. A :exc:`DeprecationWarning` was emitted in Python
3.6--3.7. (Contributed by Serhiy Storchaka in :issue:`23722`.)
* The :class:`cProfile.Profile` class can now be used as a context
manager. (Contributed by Scott Sanderson in :issue:`29235`.)
CPython bytecode changes
------------------------
...
...
Misc/NEWS.d/next/Library/2018-05-14-15-01-55.bpo-29235.47Fzwt.rst
Dosyayı görüntüle @
cebe80b5
The :class:`cProfile.Profile` class can now be used as a context manager.
You can profile a block of code by running::
import cProfile
with cProfile.Profile() as profiler:
# ... code to be profiled ...
Patch by Scott Sanderson.
The :class:`cProfile.Profile` class can now be used as a context manager. Patch
by Scott Sanderson.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment