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
733e50ad
Kaydet (Commit)
733e50ad
authored
Mar 06, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tracemalloc.py: add comments to show the format of tuples
üst
d81999a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
tracemalloc.py
Lib/tracemalloc.py
+8
-0
No files found.
Lib/tracemalloc.py
Dosyayı görüntüle @
733e50ad
...
@@ -141,6 +141,7 @@ class Frame:
...
@@ -141,6 +141,7 @@ class Frame:
__slots__
=
(
"_frame"
,)
__slots__
=
(
"_frame"
,)
def
__init__
(
self
,
frame
):
def
__init__
(
self
,
frame
):
# frame is a tuple: (filename: str, lineno: int)
self
.
_frame
=
frame
self
.
_frame
=
frame
@property
@property
...
@@ -177,6 +178,8 @@ class Traceback(Sequence):
...
@@ -177,6 +178,8 @@ class Traceback(Sequence):
def
__init__
(
self
,
frames
):
def
__init__
(
self
,
frames
):
Sequence
.
__init__
(
self
)
Sequence
.
__init__
(
self
)
# frames is a tuple of frame tuples: see Frame constructor for the
# format of a frame tuple
self
.
_frames
=
frames
self
.
_frames
=
frames
def
__len__
(
self
):
def
__len__
(
self
):
...
@@ -241,6 +244,8 @@ class Trace:
...
@@ -241,6 +244,8 @@ class Trace:
__slots__
=
(
"_trace"
,)
__slots__
=
(
"_trace"
,)
def
__init__
(
self
,
trace
):
def
__init__
(
self
,
trace
):
# trace is a tuple: (size, traceback), see Traceback constructor
# for the format of the traceback tuple
self
.
_trace
=
trace
self
.
_trace
=
trace
@property
@property
...
@@ -268,6 +273,7 @@ class Trace:
...
@@ -268,6 +273,7 @@ class Trace:
class
_Traces
(
Sequence
):
class
_Traces
(
Sequence
):
def
__init__
(
self
,
traces
):
def
__init__
(
self
,
traces
):
Sequence
.
__init__
(
self
)
Sequence
.
__init__
(
self
)
# traces is a tuple of trace tuples: see Trace constructor
self
.
_traces
=
traces
self
.
_traces
=
traces
def
__len__
(
self
):
def
__len__
(
self
):
...
@@ -338,6 +344,8 @@ class Snapshot:
...
@@ -338,6 +344,8 @@ class Snapshot:
"""
"""
def
__init__
(
self
,
traces
,
traceback_limit
):
def
__init__
(
self
,
traces
,
traceback_limit
):
# traces is a tuple of trace tuples: see _Traces constructor for
# the exact format
self
.
traces
=
_Traces
(
traces
)
self
.
traces
=
_Traces
(
traces
)
self
.
traceback_limit
=
traceback_limit
self
.
traceback_limit
=
traceback_limit
...
...
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