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
50ab9427
Kaydet (Commit)
50ab9427
authored
Ara 05, 2007
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Believe it or not, the addition of flush() calls broke two unittests.
This fixes them (by updating the "golden" output file).
üst
6c193fa0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
test_cProfile
Lib/test/output/test_cProfile
+15
-1
test_profile
Lib/test/output/test_profile
+15
-1
No files found.
Lib/test/output/test_cProfile
Dosyayı görüntüle @
50ab9427
test_cProfile
1
19 function calls (99
primitive calls) in 1.000 CPU seconds
1
24 function calls (104
primitive calls) in 1.000 CPU seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 1.000 1.000 <string>:1(<module>)
2 0.000 0.000 0.000 0.000 io.py:1193(flush)
1 0.000 0.000 0.000 0.000 io.py:257(flush)
1 0.000 0.000 0.000 0.000 io.py:644(closed)
1 0.000 0.000 0.000 0.000 io.py:862(flush)
8 0.064 0.008 0.080 0.010 test_cProfile.py:103(subhelper)
28 0.028 0.001 0.028 0.001 test_cProfile.py:115(__getattr__)
1 0.270 0.270 1.000 1.000 test_cProfile.py:30(testfunc)
...
...
@@ -26,6 +30,11 @@ test_cProfile
Function called...
ncalls tottime cumtime
<string>:1(<module>) -> 1 0.270 1.000 test_cProfile.py:30(testfunc)
io.py:1193(flush) -> 1 0.000 0.000 io.py:257(flush)
1 0.000 0.000 io.py:862(flush)
io.py:257(flush) ->
io.py:644(closed) ->
io.py:862(flush) -> 1 0.000 0.000 io.py:644(closed)
test_cProfile.py:103(subhelper) -> 16 0.016 0.016 test_cProfile.py:115(__getattr__)
test_cProfile.py:115(__getattr__) ->
test_cProfile.py:30(testfunc) -> 1 0.014 0.130 test_cProfile.py:40(factorial)
...
...
@@ -44,6 +53,7 @@ test_cProfile.py:89(helper2_indirect) -> 2 0.006 0.040
test_cProfile.py:93(helper2) -> 8 0.064 0.080 test_cProfile.py:103(subhelper)
8 0.000 0.008 {hasattr}
{exec} -> 1 0.000 1.000 <string>:1(<module>)
2 0.000 0.000 io.py:1193(flush)
{hasattr} -> 12 0.012 0.012 test_cProfile.py:115(__getattr__)
{method 'append' of 'list' objects} ->
{method 'disable' of '_lsprof.Profiler' objects} ->
...
...
@@ -55,6 +65,10 @@ test_cProfile.py:93(helper2) -> 8 0.064 0.080
Function was called by...
ncalls tottime cumtime
<string>:1(<module>) <- 1 0.000 1.000 {exec}
io.py:1193(flush) <- 2 0.000 0.000 {exec}
io.py:257(flush) <- 1 0.000 0.000 io.py:1193(flush)
io.py:644(closed) <- 1 0.000 0.000 io.py:862(flush)
io.py:862(flush) <- 1 0.000 0.000 io.py:1193(flush)
test_cProfile.py:103(subhelper) <- 8 0.064 0.080 test_cProfile.py:93(helper2)
test_cProfile.py:115(__getattr__) <- 16 0.016 0.016 test_cProfile.py:103(subhelper)
12 0.012 0.012 {hasattr}
...
...
Lib/test/output/test_profile
Dosyayı görüntüle @
50ab9427
test_profile
12
0 function calls (100
primitive calls) in 1.000 CPU seconds
12
5 function calls (105
primitive calls) in 1.000 CPU seconds
Ordered by: standard name
...
...
@@ -10,6 +10,10 @@ test_profile
12 0.000 0.000 0.012 0.001 :0(hasattr)
1 0.000 0.000 0.000 0.000 :0(setprofile)
1 0.000 0.000 1.000 1.000 <string>:1(<module>)
2 0.000 0.000 0.000 0.000 io.py:1193(flush)
1 0.000 0.000 0.000 0.000 io.py:257(flush)
1 0.000 0.000 0.000 0.000 io.py:644(closed)
1 0.000 0.000 0.000 0.000 io.py:862(flush)
0 0.000 0.000 profile:0(profiler)
1 0.000 0.000 1.000 1.000 profile:0(testfunc())
8 0.064 0.008 0.080 0.010 test_profile.py:103(subhelper)
...
...
@@ -29,9 +33,15 @@ Function called...
:0(append) ->
:0(exc_info) ->
:0(exec) -> <string>:1(<module>)(1) 1.000
io.py:1193(flush)(2) 0.000
:0(hasattr) -> test_profile.py:115(__getattr__)(12) 0.028
:0(setprofile) ->
<string>:1(<module>) -> test_profile.py:30(testfunc)(1) 1.000
io.py:1193(flush) -> io.py:257(flush)(1) 0.000
io.py:862(flush)(1) 0.000
io.py:257(flush) ->
io.py:644(closed) ->
io.py:862(flush) -> io.py:644(closed)(1) 0.000
profile:0(profiler) -> profile:0(testfunc())(1) 1.000
profile:0(testfunc()) -> :0(exec)(1) 1.000
:0(setprofile)(1) 0.000
...
...
@@ -64,6 +74,10 @@ Function was called by...
test_profile.py:93(helper2)(8) 0.400
:0(setprofile) <- profile:0(testfunc())(1) 1.000
<string>:1(<module>) <- :0(exec)(1) 1.000
io.py:1193(flush) <- :0(exec)(2) 1.000
io.py:257(flush) <- io.py:1193(flush)(1) 0.000
io.py:644(closed) <- io.py:862(flush)(1) 0.000
io.py:862(flush) <- io.py:1193(flush)(1) 0.000
profile:0(profiler) <-
profile:0(testfunc()) <- profile:0(profiler)(1) 0.000
test_profile.py:103(subhelper) <- test_profile.py:93(helper2)(8) 0.400
...
...
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